summaryrefslogtreecommitdiff
path: root/progs/tests
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:34:51 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:34:51 +0000
commit47a6749b33ab945018599dee96296668fa1a9813 (patch)
tree353434c34b53d0b1252d6c06a0244c63269e95ce /progs/tests
parentf2afdcae9a706c1a3b426da47935f0c4f2128a54 (diff)
minor tweaks
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/bufferobj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/tests/bufferobj.c b/progs/tests/bufferobj.c
index bbfa38a1d8..93e3f8b820 100644
--- 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);