From 3ebd09efc97a3631872953f34c68730010813060 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 22 Nov 2010 10:39:24 +0000 Subject: [PATCH] Fix "Virtual XFB" always being set when opening video config dialog. (Fixes issue 3537) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6458 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp b/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp index 22a3ed9e09..09d786b380 100644 --- a/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp +++ b/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp @@ -289,16 +289,20 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title) group_xfb->Add(real_xfb, 0, wxRIGHT, 5); if (!g_Config.backend_info.bSupportsRealXFB) + { real_xfb->Disable(); g_Config.bUseRealXFB = false; virtual_xfb->SetValue(true); } + if (!g_Config.bUseXFB) { real_xfb->Disable(); virtual_xfb->Disable(); } + } // xfb + // - utility { wxStaticBoxSizer* const group_utility = new wxStaticBoxSizer(wxVERTICAL, page_advanced, wxT("Utility"));