mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-23 09:41:15 +00:00
VideoSW: Fix XFB config.
This commit is contained in:
parent
fa3526962d
commit
3a452f3cc5
@ -35,7 +35,7 @@ SoftwareVideoConfigDialog::SoftwareVideoConfigDialog(wxWindow* parent, const std
|
|||||||
wxDialog(parent, wxID_ANY,
|
wxDialog(parent, wxID_ANY,
|
||||||
wxString(wxString::Format(_("Dolphin %s Graphics Configuration"), title)))
|
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"))
|
if (File::Exists(File::GetUserPath(D_CONFIG_IDX) + "GFX.ini"))
|
||||||
vconfig.Load(File::GetUserPath(D_CONFIG_IDX) + "GFX.ini");
|
vconfig.Load(File::GetUserPath(D_CONFIG_IDX) + "GFX.ini");
|
||||||
@ -139,5 +139,5 @@ SoftwareVideoConfigDialog::SoftwareVideoConfigDialog(wxWindow* parent, const std
|
|||||||
|
|
||||||
SoftwareVideoConfigDialog::~SoftwareVideoConfigDialog()
|
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());
|
||||||
}
|
}
|
||||||
|
@ -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);
|
SWOGLWindow::s_instance->ShowImage(GetCurrentColorTexture(), fbWidth * 4, fbWidth, fbHeight, 1.0);
|
||||||
|
|
||||||
UpdateActiveConfig();
|
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)
|
u32 SWRenderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user