mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Send ALL of the model's verts to GL.
Triangles have 3 vertices, not one :P
This commit is contained in:
parent
ba04cf73d0
commit
62e564c5cd
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ R_DrawAlias (void)
|
||||||
qfglVertexAttribPointer (quake_mdl.stn.location, 3, GL_SHORT,
|
qfglVertexAttribPointer (quake_mdl.stn.location, 3, GL_SHORT,
|
||||||
0, sizeof (aliasvrt_t),
|
0, sizeof (aliasvrt_t),
|
||||||
pose + field_offset (aliasvrt_t, stn));
|
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
|
#else
|
||||||
qfglVertexAttribPointer (quake_mdl.vertex.location, 3, GL_UNSIGNED_BYTE,
|
qfglVertexAttribPointer (quake_mdl.vertex.location, 3, GL_UNSIGNED_BYTE,
|
||||||
0, sizeof (aliasvrt_t),
|
0, sizeof (aliasvrt_t),
|
||||||
|
|
Loading…
Reference in a new issue