From d1df06d62959e586b40f895402fcb2e8da728b88 Mon Sep 17 00:00:00 2001 From: eihrul Date: Tue, 26 Mar 2013 22:19:01 +0000 Subject: [PATCH] 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 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2