mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 11:40:39 +02:00
radeonsi: fix a crash in si_destroy_context if we fail early
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
c70b0604f0
commit
24306c0b27
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ static void si_destroy_context(struct pipe_context *context)
|
|||
* properly.
|
||||
*/
|
||||
struct pipe_framebuffer_state fb = {};
|
||||
context->set_framebuffer_state(context, &fb);
|
||||
if (context->set_framebuffer_state)
|
||||
context->set_framebuffer_state(context, &fb);
|
||||
|
||||
si_release_all_descriptors(sctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue