fix a bug i introduced, also fix one i didn't

This commit is contained in:
Jaklyy 2024-04-05 12:46:57 -04:00
parent 75956b43c4
commit a51747b253
2 changed files with 5 additions and 0 deletions

View file

@ -182,6 +182,8 @@ void GPU3D::ResetRenderingState() noexcept
RenderClearAttr1 = 0x3F000000;
RenderClearAttr2 = 0x00007FFF;
RenderFrameIdentical = false;
}
void GPU3D::Reset() noexcept

View file

@ -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