diff options
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_regions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_regions.c b/src/mesa/drivers/dri/i915/intel_regions.c index 7176ef137a..c20d3d338a 100644 --- a/src/mesa/drivers/dri/i915/intel_regions.c +++ b/src/mesa/drivers/dri/i915/intel_regions.c @@ -52,7 +52,8 @@ void intel_region_idle(intelScreenPrivate *intelScreen, struct intel_region *region) { DBG("%s\n", __FUNCTION__); - driBOWaitIdle(region->buffer, GL_FALSE); + if (region && region->buffer) + driBOWaitIdle(region->buffer, GL_FALSE); } /* XXX: Thread safety? |