diff options
| author | Yuriy O'Donnell <yuriyo@gmail.com> | 2014-10-29 09:52:08 +0100 |
|---|---|---|
| committer | Yuriy O'Donnell <yuriyo@gmail.com> | 2014-12-07 18:45:20 +0100 |
| commit | 0e18e9e80d937568b5dcf102be37c32b5beb4359 (patch) | |
| tree | bf0e579e3fb69a57618480154e00c5acd962135f /Source/Core/VideoBackends/D3D/D3DState.cpp | |
| parent | 6e9226650d44fd79343f1fcfa30c7f04ee4cd01f (diff) | |
D3D: Removed cull mode changes for lines and points
Fixed include order and whitespace
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DState.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DState.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DState.cpp b/Source/Core/VideoBackends/D3D/D3DState.cpp index b251356e30..f3abb52aba 100644 --- a/Source/Core/VideoBackends/D3D/D3DState.cpp +++ b/Source/Core/VideoBackends/D3D/D3DState.cpp @@ -33,10 +33,10 @@ template<typename T> AutoState<T>::~AutoState() state = nullptr; } -StateManager::StateManager() +StateManager::StateManager() : m_currentBlendState(nullptr) , m_currentDepthState(nullptr) - , m_currentRasterizerState(nullptr) + , m_currentRasterizerState(nullptr) , m_dirtyFlags(~0u) { memset(&m_pending, 0, sizeof(m_pending)); @@ -97,7 +97,7 @@ void StateManager::Apply() if (m_dirtyFlags & dirtyConstants) { - if (m_current.pixelConstants[0] != m_pending.pixelConstants[0] || + if (m_current.pixelConstants[0] != m_pending.pixelConstants[0] || m_current.pixelConstants[1] != m_pending.pixelConstants[1]) { D3D::context->PSSetConstantBuffers(0, m_pending.pixelConstants[1] ? 2 : 1, m_pending.pixelConstants); |
