aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2008-03-03 19:07:49 -0500
committerKristian Høgsberg <[email protected]>2008-03-03 19:15:52 -0500
commit36c26d321b5d17902f0e8f531654dfb2fe2bdd2d (patch)
tree5f011f486e2dfd7318f13f1c52d0a1dea547a2d0 /src/mesa/drivers
parentf59d59a95f668b99fa51d25fe6e80ea59fc663ae (diff)
[intel] Silence unused variable warning when compiling for i965.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index 48dcf071317..163183487a8 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -180,7 +180,10 @@ int intel_miptree_pitch_align (struct intel_context *intel,
struct intel_mipmap_tree *mt,
int pitch)
{
+#ifdef I915
GLcontext *ctx = &intel->ctx;
+#endif
+
if (!mt->compressed) {
int pitch_align;