Explorar el Código

REVIEWED: Potential issue with animated normals on OpenGL 1.1

pull/5170/head
Ray hace 1 mes
padre
commit
48eac60171
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/rmodels.c

+ 2
- 1
src/rmodels.c Ver fichero

@ -1432,7 +1432,8 @@ void DrawMesh(Mesh mesh, Material material, Matrix transform)
else rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.vertices);
rlEnableStatePointer(GL_TEXTURE_COORD_ARRAY, mesh.texcoords);
if (mesh.normals) rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.animNormals);
if (mesh.animNormals) rlEnableStatePointer(GL_NORMAL_ARRAY, mesh.animNormals);
else rlEnableStatePointer(GL_NORMAL_ARRAY, mesh.normals);
rlEnableStatePointer(GL_COLOR_ARRAY, mesh.colors);

Cargando…
Cancelar
Guardar