diff options
| author | Yuriy O'Donnell <yuriyo@gmail.com> | 2014-11-06 20:25:34 +0100 |
|---|---|---|
| committer | Yuriy O'Donnell <yuriyo@gmail.com> | 2014-12-07 18:45:49 +0100 |
| commit | 80459c52e98141a2e40fb9ad8992d5ba7d790765 (patch) | |
| tree | a1f5a8855c8b26860853de5f549a4d0780af6a50 /Source/Core/VideoBackends/D3D/D3DState.cpp | |
| parent | 0e18e9e80d937568b5dcf102be37c32b5beb4359 (diff) | |
D3D: StateManager m_current and m_pending are now value-initialized
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DState.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DState.cpp | 4 |
1 files 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)); } |
