From 5ee2bbc771d08dc452ba2e74abae335ec02b88d8 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Thu, 17 May 2018 22:33:13 +0000 Subject: [PATCH] polymost_drawpoly(): fix issue where mirrors wouldn't update the depth buffer git-svn-id: https://svn.eduke32.com/eduke32@6888 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 4b14ef047..34e4d0f84 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -3142,7 +3142,12 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32 ; /* do nothing */ } - if (!(method & DAMETH_MASKPROPS) && fullbright_pass < 2) + if (!waloff[globalpicnum]) + { + glEnable(GL_BLEND); + glDisable(GL_ALPHA_TEST); + } + else if (!(method & DAMETH_MASKPROPS) && fullbright_pass < 2) { glDisable(GL_BLEND); glDisable(GL_ALPHA_TEST);