mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 01:11:18 +00:00
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:
parent
56410ddc58
commit
cf5c9f067f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue