summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-25 15:37:33 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-25 15:37:33 +0000
commit7b7c54e94ca1498108d2e6e657db4f9c39a6709f (patch)
tree3f54f73bf088786b6fb1c778399e4a88b53fc9ad
parent84dd9c811262219e9df86a8c105e8074c1a9447d (diff)
Replace _mesa_destroy_context() with _mesa_free_context_data() because ctx
is a member of the intel_context struct and the former calls frees the ctx pointer - BAD.
-rw-r--r--src/mesa/drivers/dri/i915/intel_context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c
index c81d8fb3e8..1d47e2ff24 100644
--- a/src/mesa/drivers/dri/i915/intel_context.c
+++ b/src/mesa/drivers/dri/i915/intel_context.c
@@ -47,7 +47,6 @@
#include "intel_screen.h"
#include "i830_dri.h"
-#include "i830_common.h"
#include "intel_buffers.h"
#include "intel_tex.h"
@@ -480,7 +479,7 @@ void intelDestroyContext(__DRIcontextPrivate *driContextPriv)
}
/* free the Mesa context */
- _mesa_destroy_context(&intel->ctx);
+ _mesa_free_context_data(&intel->ctx);
}
}