diff options
author | Eric Anholt <[email protected]> | 2009-02-08 15:39:51 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-02-10 18:45:17 -0800 |
commit | f82f1ffba9f2e5971a6a3f3927ae3b22b798bab2 (patch) | |
tree | 3536838d677f91c6cabedcd71d2536f458b9f5c6 /src/mesa | |
parent | f967e8b507990f0d7986e0f83924e6587d70200d (diff) |
intel: don't crash when dri2 tells us about buffers we don't care about.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 0d9487b99ad..7a93801ee08 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) |