diff options
author | Marek Olšák <[email protected]> | 2017-05-24 18:17:38 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-05-29 01:52:16 +0200 |
commit | 24306c0b2783bde3e1545d10effefa13d58667c4 (patch) | |
tree | 19ef58c945e30e2a4d2158a692b9859f9923715b /src/gallium | |
parent | c70b0604f0296080333d6dd86940782559bd4a5b (diff) |
radeonsi: fix a crash in si_destroy_context if we fail early
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 909a959bc1c..de4e5da0e03 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -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); |