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.8.0~96^2~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1df06d62959e586b40f895402fcb2e8da728b88;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 --- 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);