Skip to content

Commit

Permalink
glState: Apply Stencil and Color Write states.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 26, 2016
1 parent 4d51b89 commit 66323ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Layers/xrRenderGL/glState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ void glState::Apply()
RCache.set_CullMode(m_pRasterizerState.CullMode);
RCache.set_Z(m_pDepthStencilState.DepthEnable);
RCache.set_ZFunc(m_pDepthStencilState.DepthFunc);
/* TODO: OGL: Cache the stencil state globally.
RCache.set_Stencil(
m_pDepthStencilState.StencilEnable,
m_pDepthStencilState.StencilFunc,
Expand All @@ -58,7 +57,7 @@ void glState::Apply()
m_pDepthStencilState.StencilFailOp,
m_pDepthStencilState.StencilPassOp,
m_pDepthStencilState.StencilDepthFailOp
);*/
);

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

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

// TODO: OGL: Cache the color mask globally.
//RCache.set_ColorWriteEnable(m_pBlendState.ColorMask);
RCache.set_ColorWriteEnable(m_pBlendState.ColorMask);
}

void glState::Release()
Expand Down

0 comments on commit 66323ad

Please sign in to comment.