summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/Render.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2014-07-26 13:00:49 +0200
committerJules Blok <jules.blok@gmail.com>2014-07-26 13:04:46 +0200
commit06b13f12d3c7ef9946dfba6d8aa91e9f6b1ed7d6 (patch)
treedcdb5c2a88ef0a89271b81c5cdbe050e238acd1c /Source/Core/VideoBackends/D3D/Render.cpp
parent6724ce627516b89cc126ee7f4a876fc8472d46ca (diff)
D3D: Make the global swapchain static again.
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 551d40b95c..e712bed4db 100644
--- a/Source/Core/VideoBackends/D3D/Render.cpp
+++ b/Source/Core/VideoBackends/D3D/Render.cpp
@@ -943,10 +943,10 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
bool fullscreen_changed = s_last_fullscreen_mode != fullscreen;
- BOOL fullscreen_state;
- if (SUCCEEDED(D3D::swapchain->GetFullscreenState(&fullscreen_state, nullptr)))
+ bool fullscreen_state;
+ if (SUCCEEDED(D3D::GetFullscreenState(&fullscreen_state)))
{
- if (!!fullscreen_state != fullscreen && Host_RendererHasFocus())
+ if (fullscreen_state != fullscreen && Host_RendererHasFocus())
{
// The current fullscreen state does not match the configuration,
// this may happen when the renderer frame loses focus. When the
@@ -985,7 +985,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
if (fullscreen_changed)
{
s_last_fullscreen_mode = fullscreen;
- D3D::swapchain->SetFullscreenState(fullscreen, nullptr);
+ D3D::SetFullscreenState(fullscreen);
// Notify the host that it is safe to exit fullscreen
if (!fullscreen)