diff options
Diffstat (limited to 'video/out/gl_utils.c')
-rw-r--r-- | video/out/gl_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gl_utils.c b/video/out/gl_utils.c index d49ec7f6eb..6b9494f126 100644 --- a/video/out/gl_utils.c +++ b/video/out/gl_utils.c @@ -553,6 +553,8 @@ static void sc_flush_cache(struct gl_shader_cache *sc) void gl_sc_destroy(struct gl_shader_cache *sc) { + if (!sc) + return; gl_sc_reset(sc); sc_flush_cache(sc); talloc_free(sc); |