diff options
author | Eric Anholt <[email protected]> | 2013-01-23 15:23:43 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-02-11 13:14:51 -0800 |
commit | 936a3ca6fdbf166ee89d410653f7948de3282bdc (patch) | |
tree | 8370b129dcf74dba49734762f8c78c25b3cbd452 | |
parent | 016928b163634aece5a3e911dde6b643d491f025 (diff) |
i965: Fix access mode of index buffer rebase.
It doesn't matter with our current implementation of MapBufferRange,
but it was wrong -- the result pointer is read by intel_upload_data().
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 2 |
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, |