intel: don't crash when dri2 tells us about buffers we don't care about. (cherry picked from commit f82f1ffba9)

This commit is contained in:
Eric Anholt 2009-02-08 15:39:51 +01:00 committed by Ian Romanick
parent 058cf2fff1
commit 711a57f7c7

View file

@ -288,6 +288,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)