mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
016928b163
commit
936a3ca6fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue