projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6417cab
)
i965: Fix segfaults since the buffer_storage changes.
author
Eric Anholt
<eric@anholt.net>
Tue, 25 Feb 2014 19:35:49 +0000
(11:35 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 25 Feb 2014 20:19:15 +0000
(12:19 -0800)
src/mesa/drivers/dri/i965/intel_buffer_objects.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/intel_buffer_objects.c
b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
index bd7e88d8762458487a442a3b98512a16914260ce..e6124dc115521a48493ab778a5a051200345e11f 100644
(file)
--- 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;