From fc3c2e2f3e902ac99e4278fe5d335eefead270d6 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 ::stable-branch::merge=a00a40ee831fe694c0e9874035cc7ca6093096ea --- clvm_cmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clvm_cmds.c b/clvm_cmds.c index 2cb6c074..4c05562a 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_VertexPointer(polys->data_vertex3f, 0, 0); R_Mesh_ColorPointer(polys->data_color4f, 0, 0); R_Mesh_TexCoordPointer(0, 2, polys->data_texcoord2f, 0, 0); -- 2.39.2