mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 18:39:57 +00:00
Fix GL stencil tracking
This commit is contained in:
parent
3b36df48e9
commit
81f91e2095
@ -196,7 +196,7 @@ namespace gl
|
|||||||
void stencil_back_op(GLenum fail, GLenum zfail, GLenum zpass)
|
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);
|
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);
|
glStencilOpSeparate(GL_BACK, fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user