mirror of
https://github.com/libretro/RetroArch
synced 2025-01-06 01:02:15 +00:00
(gfx_ctx_swap_buffers) Guard against video context data being NULL
This commit is contained in:
parent
bab243a7a2
commit
757f0692ad
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user