From fa2db3826ec417dda00be845fe7980dddb569214 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sun, 4 Jun 2017 15:55:23 +0200 Subject: (finally) make the threaded 3D renderer option actually work --- src/wx/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/wx') diff --git a/src/wx/main.cpp b/src/wx/main.cpp index 1b245e8..a79861f 100644 --- a/src/wx/main.cpp +++ b/src/wx/main.cpp @@ -22,6 +22,7 @@ #include "../Config.h" #include "../NDS.h" #include "../GPU.h" +#include "../GPU3D.h" #include "../SPU.h" #include "InputConfig.h" @@ -283,8 +284,16 @@ void MainFrame::OnReset(wxCommandEvent& event) void MainFrame::OnEmuConfig(wxCommandEvent& event) { + bool oldpause = emuthread->EmuIsPaused(); + if (!oldpause) emuthread->EmuPause(); + EmuConfigDialog dlg(this); dlg.ShowModal(); + + // apply threaded 3D setting + GPU3D::SoftRenderer::SetupRenderThread(); + + if (!oldpause) emuthread->EmuRun(); } void MainFrame::OnInputConfig(wxCommandEvent& event) -- cgit v1.2.3