]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
disable depthfirst rendering on animated models since it doesn't work and should...
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Mar 2013 22:19:01 +0000 (22:19 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Mar 2013 22:19:01 +0000 (22:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11929 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 8a915155459bc13c3cd212c29f42d8446b4ce378..17b183d271f648f1aeea1b80695e622451432ff2 100644 (file)
@@ -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);