projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2afdca
)
minor tweaks
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 10 Aug 2004 15:34:51 +0000
(15:34 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 10 Aug 2004 15:34:51 +0000
(15:34 +0000)
progs/tests/bufferobj.c
patch
|
blob
|
history
diff --git
a/progs/tests/bufferobj.c
b/progs/tests/bufferobj.c
index bbfa38a1d84d219bf38a18891bad824a32309431..93e3f8b82093ffc676238789b3fa4167f9c90cd1 100644
(file)
--- a/
progs/tests/bufferobj.c
+++ b/
progs/tests/bufferobj.c
@@
-36,7
+36,7
@@
static void CheckError(int line)
{
GLenum err = glGetError();
if (err) {
- printf("GL Error
%d
at line %d\n", (int) err, line);
+ printf("GL Error
0x%x
at line %d\n", (int) err, line);
}
}
@@
-179,7
+179,9
@@
static void MakeObject1(struct object *obj)
for (i = 0; i < 500; i++)
buffer[i] = i & 0xff;
+ obj->BufferID = 0;
glGenBuffersARB(1, &obj->BufferID);
+ assert(obj->BufferID != 0);
glBindBufferARB(GL_ARRAY_BUFFER_ARB, obj->BufferID);
glBufferDataARB(GL_ARRAY_BUFFER_ARB, 500, buffer, GL_STATIC_DRAW_ARB);