mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix the borked texture coordinates.
Silly me, doing byte based pointer math on a non-byte pointer :P
This commit is contained in:
parent
185fded944
commit
d7bc437e2c
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue