From a51747b2530d3c93988acc782e122bd35de27d2d Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:46:57 -0400 Subject: [PATCH] fix a bug i introduced, also fix one i didn't --- src/GPU3D.cpp | 2 ++ src/GPU3D_Soft.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 47f5fc52..faaaf10b 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -182,6 +182,8 @@ void GPU3D::ResetRenderingState() noexcept RenderClearAttr1 = 0x3F000000; RenderClearAttr2 = 0x00007FFF; + + RenderFrameIdentical = false; } void GPU3D::Reset() noexcept diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 3d71db85..d68d44da 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -2064,7 +2064,10 @@ void SoftRenderer::RenderThreadFunc(GPU& gpu) if (gpu.GPU3D.RenderNumPolygons > 0) RenderPolygons(gpu, &gpu.GPU3D.RenderPolygonRAM[0], gpu.GPU3D.RenderNumPolygons); else + { memcpy(FinalBuffer, ColorBuffer, sizeof(FinalBuffer)); + Platform::Semaphore_Post(Sema_ScanlineCount, 192); + } } // Tell the main thread that we're done rendering