]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
R_BeginPolygon: if done in 3D stage, make sure depth test is done
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Oct 2010 22:39:58 +0000 (22:39 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Oct 2010 22:39:58 +0000 (22:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10536 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index 64dcdd734afb11f9bc649939516b99431e750745..c5b7e7e2dd81f3e32829f266e63707044bb771b2 100644 (file)
@@ -3075,6 +3075,7 @@ static void VM_DrawPolygonCallback (const entity_render_t *ent, const rtlight_t
        R_Mesh_ResetTextureState();
        R_EntityMatrix(&identitymatrix);
        GL_CullFace(GL_NONE);
+       GL_DepthTest(true); // polys in 3D space shall always have depth test
        R_Mesh_PrepareVertices_Generic_Arrays(polys->num_vertices, polys->data_vertex3f, polys->data_color4f, polys->data_texcoord2f);
 
        for (surfacelistindex = 0;surfacelistindex < numsurfaces;)