progs/perf: Actually bind the newly created vbo.

This commit is contained in:
Michal Krol 2009-09-23 20:24:35 +02:00
parent 35af3f94a3
commit a0549f6634
1 changed files with 1 additions and 0 deletions

View 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);