Skip to content

Commit 66323ad

Browse files
committed
glState: Apply Stencil and Color Write states.
1 parent 4d51b89 commit 66323ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Layers/xrRenderGL/glState.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ void glState::Apply()
4848
RCache.set_CullMode(m_pRasterizerState.CullMode);
4949
RCache.set_Z(m_pDepthStencilState.DepthEnable);
5050
RCache.set_ZFunc(m_pDepthStencilState.DepthFunc);
51-
/* TODO: OGL: Cache the stencil state globally.
5251
RCache.set_Stencil(
5352
m_pDepthStencilState.StencilEnable,
5453
m_pDepthStencilState.StencilFunc,
@@ -58,7 +57,7 @@ void glState::Apply()
5857
m_pDepthStencilState.StencilFailOp,
5958
m_pDepthStencilState.StencilPassOp,
6059
m_pDepthStencilState.StencilDepthFailOp
61-
);*/
60+
);
6261

6362
CHK_GL(glDepthMask(m_pDepthStencilState.DepthWriteMask ? GL_TRUE : GL_FALSE));
6463

@@ -83,8 +82,7 @@ void glState::Apply()
8382
glStateUtils::ConvertBlendOp(m_pBlendState.BlendOpAlpha)
8483
));
8584

86-
// TODO: OGL: Cache the color mask globally.
87-
//RCache.set_ColorWriteEnable(m_pBlendState.ColorMask);
85+
RCache.set_ColorWriteEnable(m_pBlendState.ColorMask);
8886
}
8987

9088
void glState::Release()

0 commit comments

Comments
 (0)