Fix the borked texture coordinates.

Silly me, doing byte based pointer math on a non-byte pointer :P
This commit is contained in:
Bill Currie 2012-01-03 18:10:35 +09:00
parent 185fded944
commit d7bc437e2c

View file

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