aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_Soft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GPU3D_Soft.cpp')
-rw-r--r--src/GPU3D_Soft.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp
index f6d27a0..de66b6b 100644
--- a/src/GPU3D_Soft.cpp
+++ b/src/GPU3D_Soft.cpp
@@ -37,10 +37,8 @@ void SoftRenderer::StopRenderThread()
{
RenderThreadRunning = false;
Platform::Semaphore_Post(Sema_RenderStart);
- // Platform::Thread_Wait(RenderThread);
- // Platform::Thread_Free(RenderThread);
- RenderThread.join();
-
+ Platform::Thread_Wait(RenderThread);
+ Platform::Thread_Free(RenderThread);
}
}
@@ -51,8 +49,7 @@ void SoftRenderer::SetupRenderThread()
if (!RenderThreadRunning)
{
RenderThreadRunning = true;
- //RenderThread = Platform::Thread_Create(RenderThreadFunc);
- RenderThread = std::thread(&SoftRenderer::RenderThreadFunc, this);
+ RenderThread = Platform::Thread_Create(std::bind(&RenderThreadFunc, this));
}
// otherwise more than one frame can be queued up at once