diff options
author | Eric Anholt <[email protected]> | 2014-02-25 11:35:49 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-02-25 12:19:15 -0800 |
commit | 42c2366de5a09227ae662b10ff479cee88a1f6c3 (patch) | |
tree | 7b4f005dc8c7fc629fa3e7b9f071d35655a6d9cc /src/mesa/drivers | |
parent | 6417cabd9cd63ac56b72e66a98141ce0817ae110 (diff) |
i965: Fix segfaults since the buffer_storage changes.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_buffer_objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index bd7e88d8762..e6124dc1155 100644 --- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c @@ -523,7 +523,7 @@ intel_bufferobj_unmap(struct gl_context * ctx, struct gl_buffer_object *obj, intel_batchbuffer_emit_mi_flush(brw); _mesa_align_free(intel_obj->range_map_buffer[index]); intel_obj->range_map_buffer[index] = NULL; - } else if (intel_obj->range_map_bo != NULL) { + } else if (intel_obj->range_map_bo[index] != NULL) { const unsigned extra = obj->Mappings[index].Pointer - intel_obj->range_map_bo[index]->virtual; |