mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
st/mesa: fix a null pointer access
Fixes crash with llvmpipe on Windows. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102148 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
27fb0899f7
commit
496a691e35
1 changed files with 1 additions and 1 deletions
|
|
@ -634,7 +634,7 @@ st_context_flush(struct st_context_iface *stctxi, unsigned flags,
|
|||
|
||||
st_flush(st, fence, pipe_flags);
|
||||
|
||||
if ((flags & ST_FLUSH_WAIT) && fence) {
|
||||
if ((flags & ST_FLUSH_WAIT) && fence && *fence) {
|
||||
st->pipe->screen->fence_finish(st->pipe->screen, NULL, *fence,
|
||||
PIPE_TIMEOUT_INFINITE);
|
||||
st->pipe->screen->fence_reference(st->pipe->screen, fence, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue