Skip to content

Commit

Permalink
VideoSW: Fix XFB config.
Browse files Browse the repository at this point in the history
  • Loading branch information
degasus committed May 18, 2016
1 parent a57d19e commit b6e81f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/SoftwareVideoConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SoftwareVideoConfigDialog::SoftwareVideoConfigDialog(wxWindow* parent, const std
wxDialog(parent, wxID_ANY,
wxString(wxString::Format(_("Dolphin %s Graphics Configuration"), title)))
{
VideoConfig& vconfig = g_ActiveConfig;
VideoConfig& vconfig = g_Config;

if (File::Exists(File::GetUserPath(D_CONFIG_IDX) + "GFX.ini"))
vconfig.Load(File::GetUserPath(D_CONFIG_IDX) + "GFX.ini");
Expand Down Expand Up @@ -139,5 +139,5 @@ SoftwareVideoConfigDialog::SoftwareVideoConfigDialog(wxWindow* parent, const std

SoftwareVideoConfigDialog::~SoftwareVideoConfigDialog()
{
g_ActiveConfig.Save((File::GetUserPath(D_CONFIG_IDX) + "GFX.ini").c_str());
g_Config.Save((File::GetUserPath(D_CONFIG_IDX) + "GFX.ini").c_str());
}
4 changes: 4 additions & 0 deletions Source/Core/VideoBackends/Software/SWRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ void SWRenderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
SWOGLWindow::s_instance->ShowImage(GetCurrentColorTexture(), fbWidth * 4, fbWidth, fbHeight, 1.0);

UpdateActiveConfig();

// virtual XFB is not supported
if (g_ActiveConfig.bUseXFB)
g_ActiveConfig.bUseRealXFB = true;
}

u32 SWRenderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
Expand Down

0 comments on commit b6e81f5

Please sign in to comment.