diff --git a/include/QF/GLSL/qf_alias.h b/include/QF/GLSL/qf_alias.h index 88d776040..8989f7d05 100644 --- a/include/QF/GLSL/qf_alias.h +++ b/include/QF/GLSL/qf_alias.h @@ -33,7 +33,7 @@ typedef struct aliasvrt_s { byte vertex[3]; - byte stn[3]; + short stn[3]; } aliasvrt_t; void R_InitAlias (void); diff --git a/libs/video/renderer/glsl/glsl_alias.c b/libs/video/renderer/glsl/glsl_alias.c index 626c3799f..f134c46d8 100644 --- a/libs/video/renderer/glsl/glsl_alias.c +++ b/libs/video/renderer/glsl/glsl_alias.c @@ -204,10 +204,10 @@ R_DrawAlias (void) qfglUniformMatrix4fv (quake_mdl.mvp_matrix.location, 1, false, mvp_mat); qfglUniformMatrix3fv (quake_mdl.norm_matrix.location, 1, false, norm_mat); - qfglVertexAttribPointer (quake_mdl.vertex.location, 3, GL_BYTE, + qfglVertexAttribPointer (quake_mdl.vertex.location, 3, GL_UNSIGNED_BYTE, 0, sizeof (aliasvrt_t), pose + field_offset (aliasvrt_t, vertex)); - qfglVertexAttribPointer (quake_mdl.vertex.location, 3, GL_BYTE, + 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);