From ed2c74a02495e73117682f52f1e2cfc1eb04e970 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sat, 26 Jul 2014 13:47:11 +0200 Subject: [PATCH 1/2] D3D: Set s_last_fullscreen_mode when constructing the renderer. --- Source/Core/VideoBackends/D3D/Render.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index e712bed4db..6b69c0a634 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -195,6 +195,7 @@ Renderer::Renderer(void *&window_handle) s_LastAA = g_ActiveConfig.iMultisampleMode; s_LastEFBScale = g_ActiveConfig.iEFBScale; + s_last_fullscreen_mode = g_ActiveConfig.bFullscreen; CalculateTargetSize(s_backbuffer_width, s_backbuffer_height); SetupDeviceObjects(); From ec402a0d5fb39fb220774e0b34019df4ee630f41 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sat, 26 Jul 2014 14:37:18 +0200 Subject: [PATCH 2/2] FPSCounter: Initialize members. --- Source/Core/VideoCommon/FPSCounter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/VideoCommon/FPSCounter.cpp b/Source/Core/VideoCommon/FPSCounter.cpp index 1ce46377c7..d6c7960c8f 100644 --- a/Source/Core/VideoCommon/FPSCounter.cpp +++ b/Source/Core/VideoCommon/FPSCounter.cpp @@ -13,6 +13,9 @@ #define FPS_REFRESH_INTERVAL 1000 FPSCounter::FPSCounter() + : m_fps(0) + , m_counter(0) + , m_fps_last_counter(0) { m_update_time.Update(); m_render_time.Update();