From a545964be80f7a76fcb8390b4e673af2abe51cea Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 21 Oct 2012 11:17:21 +0100 Subject: [PATCH] Fix crash on frame dupe. --- retroarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index 467e134bb0..0a804e3754 100644 --- a/retroarch.c +++ b/retroarch.c @@ -253,7 +253,7 @@ static void video_frame(const void *data, unsigned width, unsigned height, size_ return; #endif - if (g_extern.system.pix_fmt == RETRO_PIXEL_FORMAT_0RGB1555) + if (g_extern.system.pix_fmt == RETRO_PIXEL_FORMAT_0RGB1555 && data) { RARCH_PERFORMANCE_INIT(video_frame_conv); RARCH_PERFORMANCE_START(video_frame_conv);