projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35af3f9
)
progs/perf: Actually bind the newly created vbo.
author
Michal Krol
<michal@vmware.com>
Wed, 23 Sep 2009 18:24:35 +0000
(20:24 +0200)
committer
Michal Krol
<michal@vmware.com>
Wed, 23 Sep 2009 18:24:35 +0000
(20:24 +0200)
progs/perf/vbo.c
patch
|
blob
|
history
diff --git
a/progs/perf/vbo.c
b/progs/perf/vbo.c
index a9d4102de9f9a3743f9769b78f7957c194b7af19..b326c056ec60190cea764f23bbaefd6e3c5374d7 100644
(file)
--- 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);