summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/opengl/context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c
index 781352da34..c491039b66 100644
--- a/video/out/opengl/context.c
+++ b/video/out/opengl/context.c
@@ -135,6 +135,10 @@ void ra_gl_ctx_uninit(struct ra_ctx *ctx)
ctx->swapchain = NULL;
}
+ // Clean up any potentially left-over debug callback
+ if (ctx->ra)
+ ra_gl_set_debug(ctx->ra, false);
+
ra_free(&ctx->ra);
}