intel: added null ptr check

This fixes a segfault seen with piglit's fdo20701 test.
This commit is contained in:
Brian Paul
2009-06-29 15:26:26 -06:00
parent b1f2f92d9b
commit 4e43126a59

View File

@@ -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) {