From 6504feeb0be7bc587a2df2836717ffc64726e283 Mon Sep 17 00:00:00 2001 From: The Dax Date: Mon, 30 Sep 2013 13:13:47 -0400 Subject: [PATCH] Disable turning on software GPU when in-game. We don't support switching backends at in-game time yet. --- UI/GameSettingsScreen.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index dc7bd5a8a2..0c07d9f8ff 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -161,17 +161,20 @@ void GameSettingsScreen::CreateViews() { graphicsSettings->Add(new CheckBox(&g_Config.bDisableStencilTest, gs->T("Disable Stencil Test"))); graphicsSettings->Add(new CheckBox(&g_Config.bAlwaysDepthWrite, gs->T("Always Depth Write"))); - // Developer tools are not accessible ingame, so it goes here + // Developer tools are not accessible ingame, so it goes here. graphicsSettings->Add(new ItemHeader(gs->T("Debugging"))); Choice *dump = graphicsSettings->Add(new Choice(gs->T("Dump next frame to log"))); -#ifndef __SYMBIAN32__ - // We're normally use software rendering to debug so put it in debugging - graphicsSettings->Add(new CheckBox(&g_Config.bSoftwareRendering, gs->T("Software Rendering", "Software Rendering (experimental)"))); -#endif dump->OnClick.Handle(this, &GameSettingsScreen::OnDumpNextFrameToLog); if (!PSP_IsInited()) dump->SetEnabled(false); +#ifndef __SYMBIAN32__ + // We normally use software rendering to debug so put it in debugging. + CheckBox *softwareGPU = graphicsSettings->Add(new CheckBox(&g_Config.bSoftwareRendering, gs->T("Software Rendering", "Software Rendering (experimental)"))); + if (PSP_IsInited()) + softwareGPU->SetEnabled(false); +#endif + // Audio ViewGroup *audioSettingsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); LinearLayout *audioSettings = new LinearLayout(ORIENT_VERTICAL);