progs/perf: Actually bind the newly created vbo.
authorMichal Krol <michal@vmware.com>
Wed, 23 Sep 2009 18:24:35 +0000 (20:24 +0200)
committerMichal Krol <michal@vmware.com>
Wed, 23 Sep 2009 18:24:35 +0000 (20:24 +0200)
progs/perf/vbo.c

index a9d4102de9f9a3743f9769b78f7957c194b7af19..b326c056ec60190cea764f23bbaefd6e3c5374d7 100644 (file)
@@ -147,6 +147,7 @@ CreateDrawDestroyVBO(unsigned count)
       GLuint vbo;
       /* create/load */
       glGenBuffersARB(1, &vbo);
+      glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbo);
       glBufferDataARB(GL_ARRAY_BUFFER, VBOSize, VBOData, GL_STREAM_DRAW_ARB);
       /* draw */
       glVertexPointer(2, GL_FLOAT, sizeof(Vertex0), (void *) 0);