From 5187acd44fa7983676c4f2d20c6f9a2e070893d0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 2 Apr 2017 11:38:59 +0300 Subject: [PATCH] Fixed undefined behavior in drawing of status bar graphics Debug configuration built with Apple's Clang had bogus render styles applied to graphics in status bar --- src/g_statusbar/shared_sbar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_statusbar/shared_sbar.cpp b/src/g_statusbar/shared_sbar.cpp index 6a3bdfd55..3b3a900b1 100644 --- a/src/g_statusbar/shared_sbar.cpp +++ b/src/g_statusbar/shared_sbar.cpp @@ -1592,7 +1592,8 @@ void DBaseStatusBar::DrawGraphic(FTextureID texture, double x, double y, int fla DTA_ColorOverlay, (flags & DI_DIM) ? MAKEARGB(170, 0, 0, 0) : 0, DTA_Alpha, Alpha, DTA_AlphaChannel, !!(flags & DI_ALPHAMAPPED), - DTA_FillColor, (flags & DI_ALPHAMAPPED) ? 0 : -1); + DTA_FillColor, (flags & DI_ALPHAMAPPED) ? 0 : -1, + TAG_DONE); }