summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-08 15:39:51 +0100
committerIan Romanick <ian.d.romanick@intel.com>2009-03-13 17:38:38 -0700
commit711a57f7c70447f54caf035089be204f9ce083a8 (patch)
treebca87ae6fa79e0d72b5309046a237947e43e2031
parent058cf2fff1a987ab147ff5f092966c3ce55601b1 (diff)
intel: don't crash when dri2 tells us about buffers we don't care about. (cherry picked from commit f82f1ffba9f2e5971a6a3f3927ae3b22b798bab2)
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 450bd0e542..668d8ed2ab 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -288,6 +288,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)