summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_split_copy.c
diff options
context:
space:
mode:
authorAapo Tahkola <aapo@aapo-desktop.(none)>2007-01-18 04:17:56 +0200
committerAapo Tahkola <aapo@aapo-desktop.(none)>2007-01-18 04:17:56 +0200
commit2cb3594af9cd1434aa2c408cd6f8d51bcd12e8ea (patch)
tree75a56df5e062424fe324641247d29c04b92e449c /src/mesa/vbo/vbo_split_copy.c
parentfea6e5a69588012cf0373f36dff99a45b0202f55 (diff)
Fix invalid enums passed to MapBuffer
Diffstat (limited to 'src/mesa/vbo/vbo_split_copy.c')
-rw-r--r--src/mesa/vbo/vbo_split_copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c
index 08eae2db40f..fff733ccb53 100644
--- a/src/mesa/vbo/vbo_split_copy.c
+++ b/src/mesa/vbo/vbo_split_copy.c
@@ -382,7 +382,7 @@ static void replay_init( struct copy_context *copy )
if (vbo->Name && !vbo->Pointer)
ctx->Driver.MapBuffer(ctx,
GL_ARRAY_BUFFER_ARB,
- GL_DYNAMIC_DRAW_ARB, /* XXX */
+ GL_WRITE_ONLY, /* XXX */
vbo);
copy->varying[j].src_ptr = ADD_POINTERS(vbo->Pointer,
@@ -399,7 +399,7 @@ static void replay_init( struct copy_context *copy )
if (copy->ib->obj->Name && !copy->ib->obj->Pointer)
ctx->Driver.MapBuffer(ctx,
GL_ARRAY_BUFFER_ARB, /* XXX */
- GL_DYNAMIC_DRAW_ARB, /* XXX */
+ GL_WRITE_ONLY, /* XXX */
copy->ib->obj);
switch (copy->ib->type) {