From: Eric Anholt Date: Sun, 8 Feb 2009 14:39:51 +0000 (+0100) Subject: intel: don't crash when dri2 tells us about buffers we don't care about. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f82f1ffba9f2e5971a6a3f3927ae3b22b798bab2;p=mesa.git intel: don't crash when dri2 tells us about buffers we don't care about. --- diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 0d9487b99ad..7a93801ee08 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -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)