From 0e4fd6d37f827303f10a83595ba131fd9d517131 Mon Sep 17 00:00:00 2001 From: Cpasjuste Date: Fri, 24 Aug 2018 15:04:41 +0200 Subject: [PATCH] Gfx: Potential mitigation for the Fuzz Gfx: Temporarily remove fatal Error (only happens on Threaded+Docked) to prevent Data loss --- nx/source/gfx/gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/source/gfx/gfx.c b/nx/source/gfx/gfx.c index 8bfa2208..aef615f4 100644 --- a/nx/source/gfx/gfx.c +++ b/nx/source/gfx/gfx.c @@ -141,7 +141,7 @@ static Result _gfxDequeueBuffer(void) { //Only run nvgfxEventWait when the fence is valid and the id is not NO_FENCE. if (R_SUCCEEDED(rc) && tmp_fence.is_valid && tmp_fence.nv_fences[0].id!=0xffffffff) rc = nvgfxEventWait(tmp_fence.nv_fences[0].id, tmp_fence.nv_fences[0].value, -1); - if (R_SUCCEEDED(rc)) g_gfxCurrentBuffer = (g_gfxCurrentBuffer + 1) & (g_nvgfx_totalframebufs-1); + g_gfxCurrentBuffer = (g_gfxCurrentBuffer + 1) & (g_nvgfx_totalframebufs-1); //if (R_SUCCEEDED(rc)) rc = nvgfxSubmitGpfifo(); @@ -514,7 +514,7 @@ void gfxSwapBuffers(void) { rc = _gfxDequeueBuffer(); - if (R_FAILED(rc)) fatalSimple(MAKERESULT(Module_Libnx, LibnxError_BadGfxDequeueBuffer)); + //if (R_FAILED(rc)) fatalSimple(MAKERESULT(Module_Libnx, LibnxError_BadGfxDequeueBuffer)); } u8* gfxGetFramebuffer(u32* width, u32* height) {