From 0056e088480480922b973e2be645425cd7356d92 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 10 Aug 2024 13:16:17 +0700 Subject: [PATCH] Skip drawing lines with negative or zero width. Fixed GL error in Flying dragon. --- src/GraphicsDrawer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphicsDrawer.cpp b/src/GraphicsDrawer.cpp index 7be62d97e..0aedcff7b 100644 --- a/src/GraphicsDrawer.cpp +++ b/src/GraphicsDrawer.cpp @@ -1077,7 +1077,7 @@ void GraphicsDrawer::drawLine(u32 _v0, u32 _v1, float _width, u32 _flag) m_texrectDrawer.draw(); m_statistics.lines++; - if (!_canDraw()) + if (!_canDraw() || _width <= 0.0f) return; f32 lineWidth = _width;