From 4abd453bcf1ffc034b8252894e8e015db398f73c Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 28 Nov 2015 09:06:34 +0000 Subject: [PATCH] Fix orientation bit 64 when applied to a tile with fullbrights in OpenGL with r_fullbrights enabled. This fixes (the most glaringly wrong problem) with WWII GI's LOGO.ANM in OpenGL, exposed by r5437. git-svn-id: https://svn.eduke32.com/eduke32@5460 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index d71653213..1637f7a0b 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -858,12 +858,12 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das } } - if (dacol != 255) { char *p = (char *)(palookup[dapal])+(int32_t)(dashade<<8); dacol = (uint8_t)p[dacol]; } - else + + if (dacol == 255) { wpptr->a = 0; hasalpha = 1; @@ -1553,7 +1553,7 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32 ; /* do nothing */ } - if ((!(method&3)) && (!fullbright_pass)) + if (!(method&3) && fullbright_pass < 2) { bglDisable(GL_BLEND); bglDisable(GL_ALPHA_TEST);