From: Brian Paul Date: Wed, 17 Sep 2003 18:20:52 +0000 (+0000) Subject: s/GL_READ_WRITE_ARB/GL_WRITE_ONLY_ARB/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ceeac29ec67816fe62c15c8e9386a24911628a2;p=mesa.git s/GL_READ_WRITE_ARB/GL_WRITE_ONLY_ARB/ --- diff --git a/progs/tests/bufferobj.c b/progs/tests/bufferobj.c index 4fda352e8ff..9653f998d0f 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;