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
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-08-15 18:41:36 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-17 00:57:59 +0300
commit32e57fe4e76576c9fd628486d0845fd83bb8c51f (patch)
tree3c33531e22e91ff289bcec9e7edb699f7c817e99 /source/blender/gpu/intern/gpu_framebuffer.c
parentd63c181887ab2b9ae5e2359d58f65883ce8a849e (diff)
GPUFramebuffer: Fix wrong stencil clearing
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.c')
-rw-r--r--source/blender/gpu/intern/gpu_framebuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index 56abe040f32..21bfae00faa 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -500,7 +500,8 @@ void GPU_framebuffer_clear(
glClearDepth(clear_depth);
}
if (buffers & GPU_STENCIL_BIT) {
- glStencilMask(clear_stencil);
+ glStencilMask(0xFF);
+ glClearStencil(clear_stencil);
}
GLbitfield mask = convert_buffer_bits_to_gl(buffers);