From b009ec8f52024fe8af13dc3bbbb83e53a856075c Mon Sep 17 00:00:00 2001 From: tbocek Date: Sun, 31 May 2020 11:32:24 +0200 Subject: [PATCH] No need to call video_cb if there is no image --- libretro/LibretroGraphicsContext.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro/LibretroGraphicsContext.h b/libretro/LibretroGraphicsContext.h index 65b92d2a6a..431c9f17c8 100644 --- a/libretro/LibretroGraphicsContext.h +++ b/libretro/LibretroGraphicsContext.h @@ -51,9 +51,7 @@ public: bool Init(bool cache_context); void SetRenderTarget() override {} void SwapBuffers() override { - if (gstate_c.skipDrawReason) { - video_cb(NULL, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0); - } else { + if (!gstate_c.skipDrawReason) { video_cb(RETRO_HW_FRAME_BUFFER_VALID, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0); } }