From e852b3a2712e0d67c71b220a27bac09b25d2c35f Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Sat, 10 Aug 2019 15:08:37 +0200 Subject: [PATCH] Fixed vertex color initialization with default value in gles3 Fixes #30275, #31250 --- drivers/gles3/rasterizer_canvas_gles3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index f4faed8736a..1a97225e6b2 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -200,6 +200,8 @@ void RasterizerCanvasGLES3::canvas_end() { glBindBufferBase(GL_UNIFORM_BUFFER, 0, 0); glColorMask(1, 1, 1, 1); + glVertexAttrib4f(VS::ARRAY_COLOR, 1, 1, 1, 1); + state.using_texture_rect = false; state.using_ninepatch = false; }