Windows: Avoid restarting completely on GPU change.

This retains the logger, avoids an annoying window open/close, and most
importantly for me: keeps the debugger attached.
This commit is contained in:
Unknown W. Brackets committed 2017-04-15 16:33:30 -07:00
1 parent 638a015ced
commit e8e65881b8
9 files changed
+33 -12

No files matched your search

+4
View File
@@ -97,6 +97,10 @@ static volatile CPUThreadState cpuThreadState = CPU_THREAD_NOT_RUNNING;
static GPUBackend gpuBackend;
void ResetUIState() {
globalUIState = UISTATE_MENU;
}
void UpdateUIState(GlobalUIState newState) {
// Never leave the EXIT state.
if (globalUIState != newState && globalUIState != UISTATE_EXIT) {