diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-01-13 18:26:42 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-01-13 18:27:01 +0300 |
commit | b8bdb8e9e99d33fc16d69307330d160abbba923e (patch) | |
tree | ac7a03ec66ebc920419818d580ab2bc37875fb95 | |
parent | 820794e162e3d2cc8a5407ff5a1c9291c743a32b (diff) |
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.
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 9d14b77119f..77234e9b834 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -129,6 +129,7 @@ void drw_state_set(DRWState state) } else { glStencilMask(0x00); + glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); } } } |