Module: Mesa Branch: master Commit: f82f1ffba9f2e5971a6a3f3927ae3b22b798bab2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f82f1ffba9f2e5971a6a3f3927ae3b22b798bab2
Author: Eric Anholt <[email protected]> Date: Sun Feb 8 15:39:51 2009 +0100 intel: don't crash when dri2 tells us about buffers we don't care about. --- src/mesa/drivers/dri/intel/intel_context.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 0d9487b..7a93801 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) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
