mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
Valgrind error fix.
This commit is contained in:
parent
f397a2a1e5
commit
43722cae42
1 changed files with 2 additions and 1 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue