diff options
author | Marek Olšák <[email protected]> | 2020-03-21 23:47:08 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-04-06 10:28:53 -0400 |
commit | 54525808aa58b0f94892d3f4e5919cb4ae9493cf (patch) | |
tree | 215e3bd1ed091096b489e1bca9dbc70cceab2bbe /src/mesa/drivers/dri/i965/brw_wm_surface_state.c | |
parent | f3cce7087a562f77be7306e70d4e62bc214bb5fa (diff) |
mesa: don't ever bind NullBufferObj to glBindBuffer(Base,Range) slots
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index bb2d8043f18..a200468ac2a 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -1329,7 +1329,7 @@ upload_buffer_surface(struct brw_context *brw, { struct gl_context *ctx = &brw->ctx; - if (binding->BufferObject == ctx->Shared->NullBufferObj) { + if (!binding->BufferObject) { emit_null_surface_state(brw, NULL, out_offset); } else { ptrdiff_t size = binding->BufferObject->Size - binding->Offset; |