]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 22:40:48 +0000 (00:40 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10536 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a00a40ee831fe694c0e9874035cc7ca6093096ea

clvm_cmds.c

index 2cb6c074e69925927132a03543fcf3327c47f6bc..4c05562a57ce551496802b9939cbf8e83c5e5073 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_VertexPointer(polys->data_vertex3f, 0, 0);
        R_Mesh_ColorPointer(polys->data_color4f, 0, 0);
        R_Mesh_TexCoordPointer(0, 2, polys->data_texcoord2f, 0, 0);