mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
llvmpipe: don't assume pipe_context is always available in flush_frontbuffer
Fixes: 91dcadf956 ("llvmpipe: finish rendering before flushing frontbuffer resources.")
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18392>
This commit is contained in:
parent
c5b9a01fea
commit
7437c8f7d5
1 changed files with 2 additions and 1 deletions
|
|
@ -838,7 +838,8 @@ llvmpipe_flush_frontbuffer(struct pipe_screen *_screen,
|
|||
assert(texture->dt);
|
||||
|
||||
if (texture->dt) {
|
||||
llvmpipe_flush_resource(_pipe, resource, 0, true, true, false, "frontbuffer");
|
||||
if (_pipe)
|
||||
llvmpipe_flush_resource(_pipe, resource, 0, true, true, false, "frontbuffer");
|
||||
winsys->displaytarget_display(winsys, texture->dt, context_private, sub_box);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue