Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-01-13 18:26:42 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-01-13 18:27:01 +0300
commitb8bdb8e9e99d33fc16d69307330d160abbba923e (patch)
treeac7a03ec66ebc920419818d580ab2bc37875fb95 /source
parent820794e162e3d2cc8a5407ff5a1c9291c743a32b (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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_manager_exec.c1
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);
}
}
}