From 54d73206caf1f82be4c9adcc7596b08311dd8dbb Mon Sep 17 00:00:00 2001 From: Chearii Date: Tue, 4 Mar 2025 19:42:59 -0500 Subject: [PATCH] Fix ``hw_draw`` gaffe --- src/hardware/hw_draw.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index b2d69861a..29e735822 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -287,16 +287,18 @@ void HWR_DrawStretchyFixedPatch(GLPatch_t *gpatch, fixed_t x, fixed_t y, fixed_t v[0].t = v[1].t = 0.0f; v[2].t = v[3].t = gpatch->max_t; + // whoops + if (blendmode) + flags = HWR_GetBlendModeFlag(blendmode+1)|PF_NoDepthTest; + else + flags = PF_Translucent|PF_NoDepthTest; + if (option & V_WRAPX) flags |= PF_ForceWrapX; if (option & V_WRAPY) flags |= PF_ForceWrapY; // clip it since it is used for bunny scroll in doom I - if (blendmode) - flags = HWR_GetBlendModeFlag(blendmode+1)|PF_NoDepthTest; - else - flags = PF_Translucent|PF_NoDepthTest; if (alphalevel) {