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 <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2013-01-23 15:23:43 -08:00
parent 016928b163
commit 936a3ca6fd

View file

@ -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,