D3D11: Moved view state back to stack.

This commit is contained in:
Branimir Karadžić 2016-02-07 19:01:30 -08:00
parent 728a8ee4e5
commit c9d8b03fa6

View file

@ -3397,7 +3397,6 @@ BX_PRAGMA_DIAGNOSTIC_POP();
void* m_uniforms[BGFX_CONFIG_MAX_UNIFORMS]; void* m_uniforms[BGFX_CONFIG_MAX_UNIFORMS];
Matrix4 m_predefinedUniforms[PredefinedUniform::Count]; Matrix4 m_predefinedUniforms[PredefinedUniform::Count];
UniformRegistry m_uniformReg; UniformRegistry m_uniformReg;
ViewState m_viewState;
StateCacheT<ID3D11BlendState> m_blendStateCache; StateCacheT<ID3D11BlendState> m_blendStateCache;
StateCacheT<ID3D11DepthStencilState> m_depthStencilStateCache; StateCacheT<ID3D11DepthStencilState> m_depthStencilStateCache;
@ -4729,8 +4728,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
_render->m_hmdInitialized = m_ovr.isInitialized(); _render->m_hmdInitialized = m_ovr.isInitialized();
const bool hmdEnabled = m_ovr.isEnabled() || m_ovr.isDebug(); const bool hmdEnabled = m_ovr.isEnabled() || m_ovr.isDebug();
ViewState& viewState = m_viewState; ViewState viewState(_render, hmdEnabled);
viewState.reset(_render, hmdEnabled);
bool wireframe = !!(_render->m_debug&BGFX_DEBUG_WIREFRAME); bool wireframe = !!(_render->m_debug&BGFX_DEBUG_WIREFRAME);
bool scissorEnabled = false; bool scissorEnabled = false;