From 9cf408f77c58828fd1019d5cd35c6b8c5139c8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Zyba=C5=82a?= Date: Mon, 18 Mar 2024 18:37:09 +0100 Subject: [PATCH] Remove redundant rlDisableVertexAttribute for SHADER_LOC_VERTEX_COLOR (#3871) --- src/rmodels.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/rmodels.c b/src/rmodels.c index c50c065e..d94754f1 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -1470,9 +1470,6 @@ void DrawMesh(Mesh mesh, Material material, Matrix transform) if (mesh.indices != NULL) rlEnableVertexBufferElement(mesh.vboId[6]); } - // WARNING: Disable vertex attribute color input if mesh can not provide that data (despite location being enabled in shader) - if (mesh.vboId[3] == 0) rlDisableVertexAttribute(material.shader.locs[SHADER_LOC_VERTEX_COLOR]); - int eyeCount = 1; if (rlIsStereoRenderEnabled()) eyeCount = 2; @@ -1691,9 +1688,6 @@ void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, i if (mesh.indices != NULL) rlEnableVertexBufferElement(mesh.vboId[6]); } - // WARNING: Disable vertex attribute color input if mesh can not provide that data (despite location being enabled in shader) - if (mesh.vboId[3] == 0) rlDisableVertexAttribute(material.shader.locs[SHADER_LOC_VERTEX_COLOR]); - int eyeCount = 1; if (rlIsStereoRenderEnabled()) eyeCount = 2;