diff --git a/gfx/video_context_driver.c b/gfx/video_context_driver.c index 6679c4d39b..93fe75ef9a 100644 --- a/gfx/video_context_driver.c +++ b/gfx/video_context_driver.c @@ -167,6 +167,8 @@ bool gfx_ctx_get_video_output_next(void *data) void gfx_ctx_swap_buffers(void *data) { + if (!current_video_context) + return; if (current_video_context->swap_buffers) current_video_context->swap_buffers(data); }