Fixed vertex color initialization with default value in gles3

Fixes #30275, #31250

(cherry picked from commit e852b3a271)
This commit is contained in:
PouleyKetchoupp 2019-08-10 15:08:37 +02:00 committed by Rémi Verschelde
parent 22c31016c8
commit e83754b6ed
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ void RasterizerCanvasGLES3::canvas_end() {
glBindBufferBase(GL_UNIFORM_BUFFER, 0, 0); glBindBufferBase(GL_UNIFORM_BUFFER, 0, 0);
glColorMask(1, 1, 1, 1); glColorMask(1, 1, 1, 1);
glVertexAttrib4f(VS::ARRAY_COLOR, 1, 1, 1, 1);
state.using_texture_rect = false; state.using_texture_rect = false;
state.using_ninepatch = false; state.using_ninepatch = false;
} }