Conform-tests: Remove C99ism
This commit is contained in:
parent
9f12ec534e
commit
65e498e3f9
@ -71,14 +71,22 @@ test_material_with_primitives (TestState *state,
|
|||||||
int x, int y,
|
int x, int y,
|
||||||
guint32 color)
|
guint32 color)
|
||||||
{
|
{
|
||||||
CoglTextureVertex verts[4] = {
|
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 },
|
|
||||||
};
|
|
||||||
CoglHandle vbo;
|
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_push_matrix ();
|
||||||
|
|
||||||
cogl_translate (x * QUAD_WIDTH, y * QUAD_WIDTH, 0);
|
cogl_translate (x * QUAD_WIDTH, y * QUAD_WIDTH, 0);
|
||||||
|
@ -24,7 +24,7 @@ typedef struct test_tile
|
|||||||
|
|
||||||
static const ClutterColor
|
static const ClutterColor
|
||||||
buffer_colors[] =
|
buffer_colors[] =
|
||||||
{
|
{0
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ClutterColor stage_color = { 0x0, 0x0, 0x0, 0xff };
|
static const ClutterColor stage_color = { 0x0, 0x0, 0x0, 0xff };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user