summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_save_api.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_save_api.c
parentfea6e5a69588012cf0373f36dff99a45b0202f55 (diff)
Fix invalid enums passed to MapBuffer
Diffstat (limited to 'src/mesa/vbo/vbo_save_api.c')
-rw-r--r--src/mesa/vbo/vbo_save_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index f718cdd91a7..c08fd1fe555 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -198,7 +198,7 @@ static GLfloat *map_vertex_store( GLcontext *ctx, struct vbo_save_vertex_store *
assert(!vertex_store->buffer);
vertex_store->buffer = (GLfloat *)ctx->Driver.MapBuffer(ctx,
GL_ARRAY_BUFFER_ARB, /* not used */
- GL_STATIC_DRAW_ARB, /* not used */
+ GL_WRITE_ONLY, /* not used */
vertex_store->bufferobj);
assert(vertex_store->buffer);