diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-05-30 03:19:20 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-05-30 03:19:20 +0200 |
commit | b62d90cbe4c5232f0fe8604bd5e11f8eccd48ba1 (patch) | |
tree | bfd0a5e6f30fc382170ec9402adea32f12ebc342 /src/GPU3D_Soft.cpp | |
parent | 82302c9bf48598f889d0942340c224852c1378c5 (diff) | |
parent | 993048dd241b59747a7b30edfc861eedd4c005c9 (diff) |
Merge remote-tracking branch 'remotes/origin/master' into melonDSi
Diffstat (limited to 'src/GPU3D_Soft.cpp')
-rw-r--r-- | src/GPU3D_Soft.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 8397898..e9d8e75 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -60,6 +60,7 @@ bool Enabled; // threading +bool Threaded; void* RenderThread; bool RenderThreadRunning; bool RenderThreadRendering; @@ -83,7 +84,7 @@ void StopRenderThread() void SetupRenderThread() { - if (Config::Threaded3D) + if (Threaded) { if (!RenderThreadRunning) { @@ -112,6 +113,7 @@ bool Init() Sema_RenderDone = Platform::Semaphore_Create(); Sema_ScanlineCount = Platform::Semaphore_Create(); + Threaded = false; RenderThreadRunning = false; RenderThreadRendering = false; @@ -138,6 +140,12 @@ void Reset() SetupRenderThread(); } +void SetRenderSettings(GPU::RenderSettings& settings) +{ + Threaded = settings.Soft_Threaded; + SetupRenderThread(); +} + // Notes on the interpolator: |