From a00a40ee831fe694c0e9874035cc7ca6093096ea Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 15 Oct 2010 22:39:58 +0000 Subject: [PATCH] R_BeginPolygon: if done in 3D stage, make sure depth test is done git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10536 d7cf8633-e32d-0410-b094-e92efae38249 --- clvm_cmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clvm_cmds.c b/clvm_cmds.c index 64dcdd73..c5b7e7e2 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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;) -- 2.39.2