From 65e498e3f903517104a6008f739b26f91e3d0610 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 16 Sep 2011 17:34:29 +0800 Subject: [PATCH] Conform-tests: Remove C99ism --- tests/conform/test-cogl-materials.c | 20 ++++++++++++++------ tests/conform/test-cogl-pixel-buffer.c | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/tests/conform/test-cogl-materials.c b/tests/conform/test-cogl-materials.c index 0abf5641e..65594029a 100644 --- a/tests/conform/test-cogl-materials.c +++ b/tests/conform/test-cogl-materials.c @@ -71,14 +71,22 @@ test_material_with_primitives (TestState *state, int x, int y, guint32 color) { - CoglTextureVertex verts[4] = { - { .x = 0, .y = 0, .z = 0 }, - { .x = 0, .y = QUAD_WIDTH, .z = 0 }, - { .x = QUAD_WIDTH, .y = QUAD_WIDTH, .z = 0 }, - { .x = QUAD_WIDTH, .y = 0, .z = 0 }, - }; + CoglTextureVertex verts[4]; CoglHandle vbo; + verts[0].x = 0; + verts[0].y = 0; + verts[0].z = 0; + verts[1].x = 0; + verts[1].y = QUAD_WIDTH; + verts[1].z = 0; + verts[2].x = QUAD_WIDTH; + verts[2].y = QUAD_WIDTH; + verts[2].z = 0; + verts[3].x = QUAD_WIDTH; + verts[3].y = 0; + verts[3].z = 0; + cogl_push_matrix (); cogl_translate (x * QUAD_WIDTH, y * QUAD_WIDTH, 0); diff --git a/tests/conform/test-cogl-pixel-buffer.c b/tests/conform/test-cogl-pixel-buffer.c index 09faa578f..e100b3345 100644 --- a/tests/conform/test-cogl-pixel-buffer.c +++ b/tests/conform/test-cogl-pixel-buffer.c @@ -24,7 +24,7 @@ typedef struct test_tile static const ClutterColor buffer_colors[] = - { + {0 }; static const ClutterColor stage_color = { 0x0, 0x0, 0x0, 0xff };