diff options
Diffstat (limited to 'src/GPU3D_Soft.cpp')
-rw-r--r-- | src/GPU3D_Soft.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 7fcafb1..3d6ace6 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -94,9 +94,13 @@ void SetupRenderThread() RenderThread = Platform::Thread_Create(RenderThreadFunc); } + // otherwise more than one frame can be queued up at once + Platform::Semaphore_Reset(Sema_RenderStart); + if (RenderThreadRendering) Platform::Semaphore_Wait(Sema_RenderDone); + Platform::Semaphore_Reset(Sema_RenderDone); Platform::Semaphore_Reset(Sema_RenderStart); Platform::Semaphore_Reset(Sema_ScanlineCount); |