diff options
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/libmpv_gl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/libmpv_gl.c b/video/out/opengl/libmpv_gl.c index fc22c67053..5278d6f51a 100644 --- a/video/out/opengl/libmpv_gl.c +++ b/video/out/opengl/libmpv_gl.c @@ -101,7 +101,8 @@ static void destroy(struct libmpv_gpu_context *ctx) { struct priv *p = ctx->priv; - ra_gl_ctx_uninit(p->ra_ctx); + if (p->ra_ctx) + ra_gl_ctx_uninit(p->ra_ctx); } const struct libmpv_gpu_context_fns libmpv_gpu_context_gl = { |