(gfx_ctx_swap_buffers) Guard against video context data being NULL

This commit is contained in:
twinaphex 2015-12-03 23:59:54 +01:00
parent bab243a7a2
commit 757f0692ad

View File

@ -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);
}