summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index e7f45ada482..29ec9bb49dc 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -811,7 +811,7 @@ static void brw_upload_indices(struct brw_context *brw)
GLubyte *map = ctx->Driver.MapBufferRange(ctx,
offset,
ib_size,
- GL_MAP_WRITE_BIT,
+ GL_MAP_READ_BIT,
bufferobj);
intel_upload_data(&brw->intel, map, ib_size, ib_type_size,