Merge pull request #31270 from nekomatata/fix-vertex-color-init-gles3

Fixed vertex color initialization with default value in GLES3
This commit is contained in:
Rémi Verschelde 2019-08-12 09:28:40 +02:00 committed by GitHub
commit 0e823cffbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}