]> git.cworth.org Git - apitrace-tests/blobdiff - apps/gl/varray.c
Avoid zero strides.
[apitrace-tests] / apps / gl / varray.c
index aa24b64695029d3e051a56995c9c4f86a5328e9f..719e8f2adce9130a1ed47e5472672a45024fd435 100644 (file)
@@ -89,8 +89,8 @@ static void setupPointers(void)
    glEnableClientState(GL_VERTEX_ARRAY);
    glEnableClientState(GL_COLOR_ARRAY);
 
-   glVertexPointer(2, GL_INT, 0, vertices);
-   glColorPointer(3, GL_FLOAT, 0, colors);
+   glVertexPointer(2, GL_INT, 2 * sizeof(GLint), vertices);
+   glColorPointer(3, GL_FLOAT, 3 * sizeof(GLfloat), colors);
 }
 
 static void setupInterleave(void)