summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-29 15:26:26 -0600
committerBrian Paul <[email protected]>2009-06-29 15:26:28 -0600
commit4e43126a5915b1233c89c61400c8270d23d48ea3 (patch)
tree3aee7b59bc39ff871908498af2e2c6367130a176 /src/mesa/drivers/dri
parentb1f2f92d9b2d190d39fb1b5c919c59c9539a025a (diff)
intel: added null ptr check
This fixes a segfault seen with piglit's fdo20701 test.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 1222a9a8c6f..90e66fa5c07 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -537,7 +537,7 @@ intelFinish(GLcontext * ctx)
irb = intel_renderbuffer(fb->_ColorDrawBuffers[i]);
- if (irb->region)
+ if (irb && irb->region)
dri_bo_wait_rendering(irb->region->buffer);
}
if (fb->_DepthBuffer) {