Make GL_DrawAliasShadow const correct.

Despair's having troubles with segfaults that I can't reproduce. If it's a
strict aliasing problem, this might help.
This commit is contained in:
Bill Currie 2012-05-05 17:55:30 +09:00
parent 56410ddc58
commit cf5c9f067f

View file

@ -188,13 +188,13 @@ GL_DrawAliasFrameMulti (vert_order_t *vo)
Standard shadow drawing
*/
static void
GL_DrawAliasShadow (aliashdr_t *paliashdr, vert_order_t *vo)
GL_DrawAliasShadow (const aliashdr_t *paliashdr, const vert_order_t *vo)
{
float height, lheight;
int count;
int *order = vo->order;
const int *order = vo->order;
vec3_t point;
blended_vert_t *verts = vo->verts;
const blended_vert_t *verts = vo->verts;
lheight = currententity->origin[2] - lightspot[2];
height = -lheight + 1.0;