summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/Render.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-12-19 01:37:10 +1300
committerScott Mansell <phiren@gmail.com>2015-12-19 01:37:10 +1300
commitebe3c49c5f65d4da1762bb51071044c94fd92c18 (patch)
tree9bab8b73ae9a18a7a405d692b2c92ca2c38522fb /Source/Core/VideoBackends/D3D/Render.cpp
parent7a78df2624f09c61c111a91c698ca122efd4967d (diff)
parente26d9f7c35b0a84e6ae7181e0a6b9bf7568dea7b (diff)
Merge pull request #3332 from degasus/master
MSAA: Store samples in ini files.
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/Render.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp
index 95bfb1f0bd..970a7e5bea 100644
--- a/Source/Core/VideoBackends/D3D/Render.cpp
+++ b/Source/Core/VideoBackends/D3D/Render.cpp
@@ -42,7 +42,7 @@
namespace DX11
{
-static u32 s_last_multisample_mode = 0;
+static u32 s_last_multisamples = 1;
static bool s_last_stereo_mode = false;
static bool s_last_xfb_mode = false;
@@ -246,7 +246,7 @@ Renderer::Renderer(void *&window_handle)
UpdateDrawRectangle(s_backbuffer_width, s_backbuffer_height);
- s_last_multisample_mode = g_ActiveConfig.iMultisampleMode;
+ s_last_multisamples = g_ActiveConfig.iMultisamples;
s_last_efb_scale = g_ActiveConfig.iEFBScale;
s_last_stereo_mode = g_ActiveConfig.iStereoMode > 0;
s_last_xfb_mode = g_ActiveConfig.bUseRealXFB;
@@ -958,11 +958,11 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
windowResized ||
fullscreen_changed ||
s_last_efb_scale != g_ActiveConfig.iEFBScale ||
- s_last_multisample_mode != g_ActiveConfig.iMultisampleMode ||
+ s_last_multisamples != g_ActiveConfig.iMultisamples ||
s_last_stereo_mode != (g_ActiveConfig.iStereoMode > 0))
{
s_last_xfb_mode = g_ActiveConfig.bUseRealXFB;
- s_last_multisample_mode = g_ActiveConfig.iMultisampleMode;
+ s_last_multisamples = g_ActiveConfig.iMultisamples;
PixelShaderCache::InvalidateMSAAShaders();
if (windowResized || fullscreen_changed)