mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 00:15:57 +01:00
DrawList: No AA ends when line AA is disabled
This commit is contained in:
parent
f272141a4d
commit
d24d23fb40
@ -973,6 +973,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;
|
||||
@ -2208,6 +2209,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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user