intel: don't crash when dri2 tells us about buffers we don't care about.

This commit is contained in:
Eric Anholt 2009-02-08 15:39:51 +01:00
parent f967e8b507
commit f82f1ffba9

View file

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