From 1ceeac29ec67816fe62c15c8e9386a24911628a2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 17 Sep 2003 18:20:52 +0000 Subject: s/GL_READ_WRITE_ARB/GL_WRITE_ONLY_ARB/ --- progs/tests/bufferobj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'progs') diff --git a/progs/tests/bufferobj.c b/progs/tests/bufferobj.c index 4fda352e8f..9653f998d0 100644 --- a/progs/tests/bufferobj.c +++ b/progs/tests/bufferobj.c @@ -163,7 +163,7 @@ static void MakeObject1(struct object *obj) glGenBuffersARB(1, &obj->BufferID); glBindBufferARB(GL_ARRAY_BUFFER_ARB, obj->BufferID); glBufferDataARB(GL_ARRAY_BUFFER_ARB, 1000, NULL, GL_STATIC_DRAW_ARB); - v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_READ_WRITE_ARB); + v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB); /* Make rectangle */ v[0] = -1; v[1] = -1; v[2] = 0; @@ -191,7 +191,7 @@ static void MakeObject2(struct object *obj) glGenBuffersARB(1, &obj->BufferID); glBindBufferARB(GL_ARRAY_BUFFER_ARB, obj->BufferID); glBufferDataARB(GL_ARRAY_BUFFER_ARB, 1000, NULL, GL_STATIC_DRAW_ARB); - v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_READ_WRITE_ARB); + v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB); /* Make triangle */ v[0] = -1; v[1] = -1; v[2] = 0; @@ -218,7 +218,7 @@ static void MakeObject3(struct object *obj) glGenBuffersARB(1, &obj->BufferID); glBindBufferARB(GL_ARRAY_BUFFER_ARB, obj->BufferID); glBufferDataARB(GL_ARRAY_BUFFER_ARB, 1000, NULL, GL_STATIC_DRAW_ARB); - v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_READ_WRITE_ARB); + v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB); /* Make rectangle */ v[0] = -1; v[1] = -0.5; v[2] = 0; -- cgit v1.2.3