intel: don't crash when dri2 tells us about buffers we don't care about.
authorEric Anholt <eric@anholt.net>
Sun, 8 Feb 2009 14:39:51 +0000 (15:39 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 11 Feb 2009 02:45:17 +0000 (18:45 -0800)
src/mesa/drivers/dri/intel/intel_context.c

index 0d9487b..7a93801 100644 (file)
@@ -254,6 +254,9 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
           return;
        }
 
+       if (rb == NULL)
+         continue;
+
        if (rb->region) {
          dri_bo_flink(rb->region->buffer, &name);
          if (name == buffers[i].name)