From fe6094886faf31812602470e483fd9960d97e4ce Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Thu, 4 Jun 2026 15:57:43 +0300 Subject: [PATCH] DrawList: No AA ends when line AA is disabled --- imgui_draw.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 86ff67051..1e4c69444 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -979,6 +979,7 @@ void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 tex_uvs.z = _Data->TexUvWhitePixel.x; tex_uvs.w = _Data->TexUvWhitePixel.y; fringe = 0.0f; + flags |= ImDrawFlags_NoAAEnds; } const ImU32 col_trans = col & ~IM_COL32_A_MASK; @@ -2214,6 +2215,7 @@ void ImDrawList::_AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float t tex_uvs.z = _Data->TexUvWhitePixel.x; tex_uvs.w = _Data->TexUvWhitePixel.y; fringe = 0.0f; + flags |= ImDrawFlags_NoAAEnds; } float dir_x = p2.x - p1.x;