From bf5b1505c85d3a27c58ac77315cb39018649921e Mon Sep 17 00:00:00 2001 From: rogerman Date: Mon, 24 Aug 2015 19:40:37 +0000 Subject: [PATCH] =?UTF-8?q?GFX3D:=20-=20Fix=20bug=20where=20the=203D=20fra?= =?UTF-8?q?mebuffer=20didn=E2=80=99t=20clear=20properly=20if=20the=20main?= =?UTF-8?q?=20GPU=20is=20disabled.=20(Regression=20from=20r5190=20and=20r5?= =?UTF-8?q?212.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desmume/src/gfx3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index fef618acd..8f151d783 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -2325,7 +2325,7 @@ void gfx3d_VBlankEndSignal(bool skipFrame) if (!CommonSettings.showGpu.main) { - memset(gfx3d_colorRGBA6665, 0, sizeof(GPU_GetFramebufferWidth() * GPU_GetFramebufferHeight() * sizeof(FragmentColor))); + memset(gfx3d_colorRGBA6665, 0, GPU_GetFramebufferWidth() * GPU_GetFramebufferHeight() * sizeof(FragmentColor)); return; }