summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-23 20:24:35 +0200
committerMichal Krol <michal@vmware.com>2009-09-23 20:24:35 +0200
commita0549f6634c3573bad5544ad28a208f25c7e4644 (patch)
tree08b1d3b391dcb3cd68ec47f42ff80e47d538e92c
parent35af3f94a36d1850c8fbab3d1d0a23a904466429 (diff)
progs/perf: Actually bind the newly created vbo.
-rw-r--r--progs/perf/vbo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/perf/vbo.c b/progs/perf/vbo.c
index a9d4102de9..b326c056ec 100644
--- a/progs/perf/vbo.c
+++ b/progs/perf/vbo.c
@@ -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);