From fb36b256de05568dbfd47324e25aad1b42c17451 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 20 Mar 2019 11:24:19 +0000 Subject: [PATCH] Fix "spriteshadow" on voxels in Polymost git-svn-id: https://svn.eduke32.com/eduke32@7441 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/voxmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/voxmodel.cpp b/source/build/src/voxmodel.cpp index a9d576652..4a37a15e9 100644 --- a/source/build/src/voxmodel.cpp +++ b/source/build/src/voxmodel.cpp @@ -957,7 +957,7 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr) if (tspr->extra&TSPR_EXTRA_MDHACK) { - glDepthFunc(GL_LESS); //NEVER,LESS,(,L)EQUAL,GREATER,(NOT,G)EQUAL,ALWAYS + glDepthFunc(GL_LEQUAL); //NEVER,LESS,(,L)EQUAL,GREATER,(NOT,G)EQUAL,ALWAYS // glDepthRange(0.0, 0.9999); }