diff options
| author | Ray <[email protected]> | 2024-03-21 15:43:08 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-03-21 15:43:08 +0100 |
| commit | 35252fceefdeb7b0920d9c1513efb4b5c05633dc (patch) | |
| tree | a5793fb47e5bab2940fa9f855ed50c83a6fcc139 /src | |
| parent | dcb9db5fe634893a9691a439cbe552c0133b0a56 (diff) | |
| parent | 9cf408f77c58828fd1019d5cd35c6b8c5139c8dc (diff) | |
| download | raylib-35252fceefdeb7b0920d9c1513efb4b5c05633dc.tar.gz raylib-35252fceefdeb7b0920d9c1513efb4b5c05633dc.zip | |
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src')
| -rw-r--r-- | src/rmodels.c | 6 |
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; |
