Skip to content

Commit 48eac60

Browse files
committed
REVIEWED: Potential issue with animated normals on OpenGL 1.1
1 parent 2a29521 commit 48eac60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rmodels.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,8 @@ void DrawMesh(Mesh mesh, Material material, Matrix transform)
14321432
else rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.vertices);
14331433

14341434
rlEnableStatePointer(GL_TEXTURE_COORD_ARRAY, mesh.texcoords);
1435-
if (mesh.normals) rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.animNormals);
1435+
1436+
if (mesh.animNormals) rlEnableStatePointer(GL_NORMAL_ARRAY, mesh.animNormals);
14361437
else rlEnableStatePointer(GL_NORMAL_ARRAY, mesh.normals);
14371438

14381439
rlEnableStatePointer(GL_COLOR_ARRAY, mesh.colors);

0 commit comments

Comments
 (0)