From: Brian Paul Date: Wed, 5 Apr 2000 21:35:46 +0000 (+0000) Subject: added missing braces in initializers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fbd189d8157fe498e91be86f53330a5a11b79db;p=mesa.git added missing braces in initializers --- diff --git a/progs/redbook/tesswind.c b/progs/redbook/tesswind.c index 455966a0b02..86639d48824 100644 --- a/progs/redbook/tesswind.c +++ b/progs/redbook/tesswind.c @@ -64,30 +64,30 @@ GLuint list; void makeNewLists (void) { int i; static GLdouble rects[12][3] = - {50.0, 50.0, 0.0, 300.0, 50.0, 0.0, - 300.0, 300.0, 0.0, 50.0, 300.0, 0.0, - 100.0, 100.0, 0.0, 250.0, 100.0, 0.0, - 250.0, 250.0, 0.0, 100.0, 250.0, 0.0, - 150.0, 150.0, 0.0, 200.0, 150.0, 0.0, - 200.0, 200.0, 0.0, 150.0, 200.0, 0.0}; + {{ 50.0, 50.0, 0.0}, {300.0, 50.0, 0.0}, + {300.0, 300.0, 0.0}, { 50.0, 300.0, 0.0}, + {100.0, 100.0, 0.0}, {250.0, 100.0, 0.0}, + {250.0, 250.0, 0.0}, {100.0, 250.0, 0.0}, + {150.0, 150.0, 0.0}, {200.0, 150.0, 0.0}, + {200.0, 200.0, 0.0}, {150.0, 200.0, 0.0}}; static GLdouble spiral[16][3] = - {400.0, 250.0, 0.0, 400.0, 50.0, 0.0, - 50.0, 50.0, 0.0, 50.0, 400.0, 0.0, - 350.0, 400.0, 0.0, 350.0, 100.0, 0.0, - 100.0, 100.0, 0.0, 100.0, 350.0, 0.0, - 300.0, 350.0, 0.0, 300.0, 150.0, 0.0, - 150.0, 150.0, 0.0, 150.0, 300.0, 0.0, - 250.0, 300.0, 0.0, 250.0, 200.0, 0.0, - 200.0, 200.0, 0.0, 200.0, 250.0, 0.0}; + {{400.0, 250.0, 0.0}, {400.0, 50.0, 0.0}, + { 50.0, 50.0, 0.0}, { 50.0, 400.0, 0.0}, + {350.0, 400.0, 0.0}, {350.0, 100.0, 0.0}, + {100.0, 100.0, 0.0}, {100.0, 350.0, 0.0}, + {300.0, 350.0, 0.0}, {300.0, 150.0, 0.0}, + {150.0, 150.0, 0.0}, {150.0, 300.0, 0.0}, + {250.0, 300.0, 0.0}, {250.0, 200.0, 0.0}, + {200.0, 200.0, 0.0}, {200.0, 250.0, 0.0}}; static GLdouble quad1[4][3] = - {50.0, 150.0, 0.0, 350.0, 150.0, 0.0, - 350.0, 200.0, 0.0, 50.0, 200.0, 0.0}; + {{ 50.0, 150.0, 0.0}, {350.0, 150.0, 0.0}, + {350.0, 200.0, 0.0}, { 50.0, 200.0, 0.0}}; static GLdouble quad2[4][3] = - {100.0, 100.0, 0.0, 300.0, 100.0, 0.0, - 300.0, 350.0, 0.0, 100.0, 350.0, 0.0}; + {{100.0, 100.0, 0.0}, {300.0, 100.0, 0.0}, + {300.0, 350.0, 0.0}, {100.0, 350.0, 0.0}}; static GLdouble tri[3][3] = - {200.0, 50.0, 0.0, 250.0, 300.0, 0.0, - 150.0, 300.0, 0.0}; + {{200.0, 50.0, 0.0}, {250.0, 300.0, 0.0}, + {150.0, 300.0, 0.0}}; gluTessProperty(tobj, GLU_TESS_WINDING_RULE, currentWinding);