summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-09-17 18:20:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-09-17 18:20:52 +0000
commit1ceeac29ec67816fe62c15c8e9386a24911628a2 (patch)
treea708d1ab4cfa7c32b54a02458d406e58450e3284
parentde8d410a99d29f496a033bd9335d07128b58c38b (diff)
s/GL_READ_WRITE_ARB/GL_WRITE_ONLY_ARB/
-rw-r--r--progs/tests/bufferobj.c6
1 files changed, 3 insertions, 3 deletions
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;