diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-10 15:08:37 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-11 17:51:47 +0200 |
commit | e852b3a2712e0d67c71b220a27bac09b25d2c35f (patch) | |
tree | 31b00a840a593342f9597d447788863c97589e2f /drivers/gles3 | |
parent | e578c1fef86b8b1307e9ceb089b6efd5e53a5f18 (diff) |
Fixed vertex color initialization with default value in gles3
Fixes #30275, #31250
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_canvas_gles3.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index f4faed8736..1a97225e6b 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; } |