File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ void glState::Apply()
48
48
RCache.set_CullMode (m_pRasterizerState.CullMode );
49
49
RCache.set_Z (m_pDepthStencilState.DepthEnable );
50
50
RCache.set_ZFunc (m_pDepthStencilState.DepthFunc );
51
- /* TODO: OGL: Cache the stencil state globally.
52
51
RCache.set_Stencil (
53
52
m_pDepthStencilState.StencilEnable ,
54
53
m_pDepthStencilState.StencilFunc ,
@@ -58,7 +57,7 @@ void glState::Apply()
58
57
m_pDepthStencilState.StencilFailOp ,
59
58
m_pDepthStencilState.StencilPassOp ,
60
59
m_pDepthStencilState.StencilDepthFailOp
61
- );*/
60
+ );
62
61
63
62
CHK_GL (glDepthMask (m_pDepthStencilState.DepthWriteMask ? GL_TRUE : GL_FALSE));
64
63
@@ -83,8 +82,7 @@ void glState::Apply()
83
82
glStateUtils::ConvertBlendOp (m_pBlendState.BlendOpAlpha )
84
83
));
85
84
86
- // TODO: OGL: Cache the color mask globally.
87
- // RCache.set_ColorWriteEnable(m_pBlendState.ColorMask);
85
+ RCache.set_ColorWriteEnable (m_pBlendState.ColorMask );
88
86
}
89
87
90
88
void glState::Release ()
You can’t perform that action at this time.
0 commit comments