From: eihrul Date: Tue, 26 Mar 2013 22:19:01 +0000 (+0000) Subject: disable depthfirst rendering on animated models since it doesn't work and should... X-Git-Tag: xonotic-v0.7.0~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=69c7fbef96507936f5d935289373c5a9ee400eef;p=xonotic%2Fdarkplaces.git disable depthfirst rendering on animated models since it doesn't work and should theoretically have little performance benefit (and most likely performance detriment) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11929 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d1df06d62959e586b40f895402fcb2e8da728b88 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index 8a915155..17b183d2 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -637,7 +637,7 @@ void R_Q1BSP_Draw(entity_render_t *ent) void R_Q1BSP_DrawDepth(entity_render_t *ent) { dp_model_t *model = ent->model; - if (model == NULL) + if (model == NULL || model->surfmesh.isanimated) return; GL_ColorMask(0,0,0,0); GL_Color(1,1,1,1);