mirror of
https://github.com/ocornut/imgui.git
synced 2026-08-21 06:41:09 +00:00
DrawList: No AA ends when line AA is disabled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user