s/GL_READ_WRITE_ARB/GL_WRITE_ONLY_ARB/
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2003 18:20:52 +0000 (18:20 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2003 18:20:52 +0000 (18:20 +0000)
progs/tests/bufferobj.c

index 4fda352e8ff565b77f32a1f93e67b46477343f7b..9653f998d0fef9a6d6fae196f2230ec61a160360 100644 (file)
@@ -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;