mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #5418 from MerryMage/config-again-and-again
VideoConfig: Port to layered configuration system
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "VideoBackends/D3D/D3DBase.h"
|
||||
#include "VideoBackends/D3D/D3DState.h"
|
||||
@ -319,7 +320,7 @@ HRESULT Create(HWND wnd)
|
||||
return desc.Count == g_Config.iMultisamples;
|
||||
}) == aa_modes.end())
|
||||
{
|
||||
g_Config.iMultisamples = 1;
|
||||
Config::SetCurrent(Config::GFX_MSAA, 1);
|
||||
UpdateActiveConfig();
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,8 @@
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
|
||||
#include "VideoBackends/OGL/FramebufferManager.h"
|
||||
#include "VideoBackends/OGL/ProgramShaderCache.h"
|
||||
#include "VideoBackends/OGL/SamplerCache.h"
|
||||
@ -139,7 +141,7 @@ void OpenGLPostProcessing::ApplyShader()
|
||||
if (!ProgramShaderCache::CompileShader(m_shader, s_vertex_shader, code))
|
||||
{
|
||||
ERROR_LOG(VIDEO, "Failed to compile post-processing shader %s", m_config.GetShader().c_str());
|
||||
g_ActiveConfig.sPostProcessingShader.clear();
|
||||
Config::SetCurrent(Config::GFX_ENHANCE_POST_SHADER, std::string(""));
|
||||
code = m_config.LoadShader();
|
||||
ProgramShaderCache::CompileShader(m_shader, s_vertex_shader, code);
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/Core.h"
|
||||
|
||||
#include "VideoBackends/OGL/BoundingBox.h"
|
||||
@ -518,7 +519,7 @@ Renderer::Renderer()
|
||||
{
|
||||
// GLES 3.1 can't support stereo rendering and MSAA
|
||||
OSD::AddMessage("MSAA Stereo rendering isn't supported by your GPU.", 10000);
|
||||
g_ActiveConfig.iMultisamples = 1;
|
||||
Config::SetCurrent(Config::GFX_MSAA, 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/HW/Memmap.h"
|
||||
|
||||
#include "VideoBackends/Software/EfbCopy.h"
|
||||
@ -142,7 +143,9 @@ void SWRenderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
|
||||
|
||||
// virtual XFB is not supported
|
||||
if (g_ActiveConfig.bUseXFB)
|
||||
g_ActiveConfig.bUseRealXFB = true;
|
||||
{
|
||||
Config::SetCurrent(Config::GFX_USE_REAL_XFB, true);
|
||||
}
|
||||
}
|
||||
|
||||
u32 SWRenderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
|
||||
|
Reference in New Issue
Block a user