Fix invalid enums passed to MapBuffer
authorAapo Tahkola <aapo@aapo-desktop.(none)>
Thu, 18 Jan 2007 02:46:04 +0000 (04:46 +0200)
committerAapo Tahkola <aapo@aapo-desktop.(none)>
Thu, 18 Jan 2007 02:46:04 +0000 (04:46 +0200)
src/mesa/vbo/vbo_save_draw.c

index daa686072ef8f977a570955affddb20c0b5767fb..a50d1cd9049862be3ab45595f38a254e80b100c3 100644 (file)
@@ -152,7 +152,7 @@ static void vbo_save_loopback_vertex_list( GLcontext *ctx,
 {
    const char *buffer = ctx->Driver.MapBuffer(ctx, 
                                              GL_ARRAY_BUFFER_ARB, 
-                                             GL_DYNAMIC_READ_ARB, /* ? */
+                                             GL_READ_ONLY, /* ? */
                                               list->vertex_store->bufferobj);
 
    vbo_loopback_vertex_list( ctx,