OSDN Git Service

graw: fix array size, indentation,
authorBrian Paul <brianp@vmware.com>
Thu, 9 Sep 2010 21:11:37 +0000 (15:11 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Sep 2010 01:19:28 +0000 (19:19 -0600)
src/gallium/tests/graw/tri.c

index 4dbd2c0..8f68fc7 100644 (file)
@@ -31,16 +31,19 @@ struct vertex {
    float color[4];
 };
 
-static struct vertex vertices[4] =
+static struct vertex vertices[3] =
 {
-   { { 0.0f, -0.9f, 0.0f, 1.0f },
-     { 1.0f, 0.0f, 0.0f, 1.0f }
+   {
+      { 0.0f, -0.9f, 0.0f, 1.0f },
+      { 1.0f, 0.0f, 0.0f, 1.0f }
    },
-   { { -0.9f, 0.9f, 0.0f, 1.0f },
-     { 0.0f, 1.0f, 0.0f, 1.0f }
+   {
+      { -0.9f, 0.9f, 0.0f, 1.0f },
+      { 0.0f, 1.0f, 0.0f, 1.0f }
    },
-   { { 0.9f, 0.9f, 0.0f, 1.0f },
-     { 0.0f, 0.0f, 1.0f, 1.0f }
+   {
+      { 0.9f, 0.9f, 0.0f, 1.0f },
+      { 0.0f, 0.0f, 1.0f, 1.0f }
    }
 };