From c73fb2ef984db6e8254bb3f6667e073213eb823a Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 13 Dec 2015 23:50:23 -0400 Subject: [PATCH] Fixed stenciling inside a Canvas in OpenGL ES 2. --- src/modules/graphics/opengl/Canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Canvas.cpp b/src/modules/graphics/opengl/Canvas.cpp index a2904c6c9..9881c9ca6 100644 --- a/src/modules/graphics/opengl/Canvas.cpp +++ b/src/modules/graphics/opengl/Canvas.cpp @@ -558,7 +558,7 @@ bool Canvas::checkCreateStencil() if (GLAD_ES_VERSION_3_0 || GLAD_VERSION_3_0 || GLAD_ARB_framebuffer_object || GLAD_EXT_packed_depth_stencil || GLAD_OES_packed_depth_stencil) { - format = GL_DEPTH_STENCIL; + format = GL_DEPTH24_STENCIL8; attachment = GL_DEPTH_STENCIL_ATTACHMENT; }