projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a856da6
)
[915] Free dri_bufmgr after mesa context data.
author
Eric Anholt
<eric@anholt.net>
Tue, 18 Dec 2007 22:17:27 +0000
(14:17 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 18 Dec 2007 22:17:27 +0000
(14:17 -0800)
Fixes a crash when buffer objects are left around until context destroy.
src/mesa/drivers/dri/i915/intel_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/intel_context.c
b/src/mesa/drivers/dri/i915/intel_context.c
index be084903c2492fc8a174f0c52e80fdb823c8231b..5d34642a5dcccd0a0c936974b4f287a706e1d994 100644
(file)
--- a/
src/mesa/drivers/dri/i915/intel_context.c
+++ b/
src/mesa/drivers/dri/i915/intel_context.c
@@
-591,8
+591,6
@@
intelDestroyContext(__DRIcontextPrivate * driContextPriv)
intel->first_swap_fence = NULL;
}
- dri_bufmgr_destroy(intel->bufmgr);
-
if (release_texture_heaps) {
/* This share group is about to go away, free our private
* texture object data.
@@
-603,6
+601,8
@@
intelDestroyContext(__DRIcontextPrivate * driContextPriv)
/* free the Mesa context */
_mesa_free_context_data(&intel->ctx);
+
+ dri_bufmgr_destroy(intel->bufmgr);
}
}