From cf5c9f067f4c153f7da73deb8b6acae32f6c3363 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 5 May 2012 17:55:30 +0900 Subject: [PATCH] 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. --- libs/video/renderer/gl/gl_mod_alias.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/video/renderer/gl/gl_mod_alias.c b/libs/video/renderer/gl/gl_mod_alias.c index ae390bd44..77babc83d 100644 --- a/libs/video/renderer/gl/gl_mod_alias.c +++ b/libs/video/renderer/gl/gl_mod_alias.c @@ -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;