This commit is contained in:
Teejoon
2016-02-26 18:36:49 +01:00
parent 62e22d3821
commit cc5943fcee
8 changed files with 81 additions and 29 deletions
@@ -9,6 +9,7 @@ DrawFinalPassState::DrawFinalPassState(GLuint frameBuffer)
BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Enable(GL_DEPTH_TEST);
Enable(GL_CULL_FACE);
glDepthFunc(GL_LEQUAL);
Enable(GL_STENCIL_TEST);
StencilFunc(GL_NOTEQUAL, 1, 0xFF);
StencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);