Valgrind error fix.

This commit is contained in:
Thomas Hellström 2006-09-26 14:15:08 +00:00
parent f397a2a1e5
commit 43722cae42

View file

@ -52,7 +52,8 @@ void
intel_region_idle(intelScreenPrivate *intelScreen, struct intel_region *region)
{
DBG("%s\n", __FUNCTION__);
driBOWaitIdle(region->buffer, GL_FALSE);
if (region && region->buffer)
driBOWaitIdle(region->buffer, GL_FALSE);
}
/* XXX: Thread safety?