From: divverent Date: Fri, 15 Oct 2010 22:39:58 +0000 (+0000) Subject: R_BeginPolygon: if done in 3D stage, make sure depth test is done X-Git-Tag: xonotic-v0.1.0preview~56^2~81 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=a00a40ee831fe694c0e9874035cc7ca6093096ea;p=xonotic%2Fdarkplaces.git 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 --- 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;)