summaryrefslogtreecommitdiffhomepage
path: root/src/rmodels.c
diff options
context:
space:
mode:
authorKacper ZybaƂa <[email protected]>2024-03-18 18:37:09 +0100
committerGitHub <[email protected]>2024-03-18 18:37:09 +0100
commit9cf408f77c58828fd1019d5cd35c6b8c5139c8dc (patch)
tree641062029910b297bcf6c7ceac39502a7efd14bd /src/rmodels.c
parent28c232d856e8908a9f2675d5df56bc16f1e30acf (diff)
downloadraylib-9cf408f77c58828fd1019d5cd35c6b8c5139c8dc.tar.gz
raylib-9cf408f77c58828fd1019d5cd35c6b8c5139c8dc.zip
Remove redundant rlDisableVertexAttribute for SHADER_LOC_VERTEX_COLOR (#3871)
Diffstat (limited to 'src/rmodels.c')
-rw-r--r--src/rmodels.c6
1 files changed, 0 insertions, 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;