From a5dcea17b6e1f657f965db591f347f01a9ff79ee Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 8 Feb 2025 23:07:39 +0100 Subject: [PATCH] fix clang uninitialised warning --- src/hardware/hw_draw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index ab88e602f..0c3fd3d73 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -288,17 +288,17 @@ 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; - 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 (option & V_WRAPX) + flags |= PF_ForceWrapX; + if (option & V_WRAPY) + flags |= PF_ForceWrapY; + if (alphalevel) { FSurfaceInfo Surf;