summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellström <thomas@tungstengraphics.com>2006-09-26 14:15:08 +0000
committerThomas Hellström <thomas@tungstengraphics.com>2006-09-26 14:15:08 +0000
commit43722cae4255c679e80d8fa08edcd70e9bf44114 (patch)
tree367865fff7e1cdf2f5f55724b3ae9a2c07426e20
parentf397a2a1e5c5a0e954efe0eb98e4e6768edc264b (diff)
Valgrind error fix.
-rw-r--r--src/mesa/drivers/dri/i915/intel_regions.c3
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?