From 80459c52e98141a2e40fb9ad8992d5ba7d790765 Mon Sep 17 00:00:00 2001 From: Yuriy O'Donnell Date: Thu, 6 Nov 2014 20:25:34 +0100 Subject: [PATCH] D3D: StateManager m_current and m_pending are now value-initialized --- Source/Core/VideoBackends/D3D/D3DState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoBackends/D3D/D3DState.cpp b/Source/Core/VideoBackends/D3D/D3DState.cpp index f3abb52aba..33310c9957 100644 --- a/Source/Core/VideoBackends/D3D/D3DState.cpp +++ b/Source/Core/VideoBackends/D3D/D3DState.cpp @@ -38,9 +38,9 @@ StateManager::StateManager() , m_currentDepthState(nullptr) , m_currentRasterizerState(nullptr) , m_dirtyFlags(~0u) + , m_pending() + , m_current() { - memset(&m_pending, 0, sizeof(m_pending)); - memset(&m_current, 0, sizeof(m_current)); } void StateManager::PushBlendState(const ID3D11BlendState* state) { m_blendStates.push(AutoBlendState(state)); }