summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2007-03-06 15:47:37 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2007-03-06 15:47:37 +0800
commit1c70cde8881f794782780cbd695da0882f78c769 (patch)
treee5802ee9dd4985dc6dd1c44718201e9f08686775 /src/mesa/drivers/dri/i965
parenta783713432a1aed168688ace7d03bc11abf9b406 (diff)
fix for bug#10182
call _mesa_dereference_framebuffer instead of _mesa_dereference_framebuffer in i810, i915, i915tex, i965 drivers.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 08f0bb340f..06e5d0c5bd 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -457,7 +457,8 @@ static GLboolean intelCreateBuffer( __DRIscreenPrivate *driScrnPriv,
static void intelDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
{
- _mesa_destroy_framebuffer((GLframebuffer *) (driDrawPriv->driverPrivate));
+ /* _mesa_destroy_framebuffer((GLframebuffer *) (driDrawPriv->driverPrivate)); */
+ _mesa_dereference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
}