Send ALL of the model's verts to GL.

Triangles have 3 vertices, not one :P
This commit is contained in:
Bill Currie 2012-01-03 11:47:40 +09:00
parent ba04cf73d0
commit 62e564c5cd

View file

@ -227,7 +227,7 @@ R_DrawAlias (void)
qfglVertexAttribPointer (quake_mdl.stn.location, 3, GL_SHORT,
0, sizeof (aliasvrt_t),
pose + field_offset (aliasvrt_t, stn));
qfglDrawElements (GL_TRIANGLES, hdr->mdl.numtris, GL_UNSIGNED_SHORT, 0);
qfglDrawElements (GL_TRIANGLES, 3 * hdr->mdl.numtris, GL_UNSIGNED_SHORT, 0);
#else
qfglVertexAttribPointer (quake_mdl.vertex.location, 3, GL_UNSIGNED_BYTE,
0, sizeof (aliasvrt_t),