X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=apps%2Fgl%2Fvarray.c;fp=apps%2Fgl%2Fvarray.c;h=719e8f2adce9130a1ed47e5472672a45024fd435;hb=8d2d0a6eda093ec8f20a8b8b7ea7fc50d0e02b26;hp=aa24b64695029d3e051a56995c9c4f86a5328e9f;hpb=6bd03f06bc7875962e85cc643b54b7ed093b9900;p=apitrace-tests diff --git a/apps/gl/varray.c b/apps/gl/varray.c index aa24b64..719e8f2 100644 --- a/apps/gl/varray.c +++ b/apps/gl/varray.c @@ -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)