[intel] Silence unused variable warning when compiling for i965.
authorKristian Høgsberg <krh@redhat.com>
Tue, 4 Mar 2008 00:07:49 +0000 (19:07 -0500)
committerKristian Høgsberg <krh@redhat.com>
Tue, 4 Mar 2008 00:15:52 +0000 (19:15 -0500)
src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index 48dcf071317f5956e4cadf3d0b7ea203eccbf07f..163183487a84ec826e66cc8b6d489d439289d18b 100644 (file)
@@ -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;