]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.c
fix an issue with glStencilFuncSeparate being misused (strange that I don't think...
[xonotic/darkplaces.git] / gl_backend.c
index c7fca532607aee46eca9de2eccad4ff0ca167dee..bfc5c96810227a42fcfef5948e7cda8f49cb6dd1 100644 (file)
@@ -1972,7 +1972,8 @@ void R_SetStencilSeparate(qboolean enable, int writemask, int frontfail, int fro
                        qglStencilMask(writemask);CHECKGLERROR
                        qglStencilOpSeparate(GL_FRONT, frontfail, frontzfail, frontzpass);CHECKGLERROR
                        qglStencilOpSeparate(GL_BACK, backfail, backzfail, backzpass);CHECKGLERROR
-                       qglStencilFuncSeparate(frontcompare, backcompare, comparereference, comparereference);CHECKGLERROR
+                       qglStencilFuncSeparate(GL_FRONT, frontcompare, comparereference, comparereference);CHECKGLERROR
+                       qglStencilFuncSeparate(GL_BACK, backcompare, comparereference, comparereference);CHECKGLERROR
                }
                else if (vid.support.ext_stencil_two_side)
                {