mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
D3D11: Moved view state back to stack.
This commit is contained in:
parent
728a8ee4e5
commit
c9d8b03fa6
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue