DRW: Fix stencil being modified by passes that are read only
This is because even if the glStencilMask is 0x00 the GL_DECR_WRAP and GL_INCR_WRAP states still works and will modify the stencil. Fix T73046 Overlapping parts of wireframes don't render at all in workench with shadows turned on.
This commit is contained in:
parent
820794e162
commit
b8bdb8e9e9
Notes:
blender-bot
2023-02-14 07:45:38 +01:00
Referenced by issue #73046, [Workbench] Wireframe rendering error (overlapping parts of wireframes don't render at all)
|
@ -129,6 +129,7 @@ void drw_state_set(DRWState state)
|
|||
}
|
||||
else {
|
||||
glStencilMask(0x00);
|
||||
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue