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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user