Fix GL stencil tracking

This commit is contained in:
kd-11 2024-08-28 06:25:56 +03:00 committed by kd-11
parent 3b36df48e9
commit 81f91e2095

View File

@ -196,7 +196,7 @@ namespace gl
void stencil_back_op(GLenum fail, GLenum zfail, GLenum zpass)
{
const u64 value = static_cast<u64>(fail) << 32 | static_cast<u64>(zfail) << 16 | static_cast<u64>(zpass);
if (!test_and_set_property(STENCIL_FRONT_OP, value))
if (!test_and_set_property(STENCIL_BACK_OP, value))
{
glStencilOpSeparate(GL_BACK, fail, zfail, zpass);
}