mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 14:16:36 +00:00
Removed unnecessary assignment + added comment
This commit is contained in:
parent
527208ad7c
commit
a79ee94fc4
@ -9197,6 +9197,7 @@ void ImDrawList::PopTextureID()
|
|||||||
UpdateTextureID();
|
UpdateTextureID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NB: this can be called with negative count for removing primitives (as long as the result does not underflow)
|
||||||
void ImDrawList::PrimReserve(int idx_count, int vtx_count)
|
void ImDrawList::PrimReserve(int idx_count, int vtx_count)
|
||||||
{
|
{
|
||||||
ImDrawCmd& draw_cmd = CmdBuffer.Data[CmdBuffer.Size-1];
|
ImDrawCmd& draw_cmd = CmdBuffer.Data[CmdBuffer.Size-1];
|
||||||
@ -9629,7 +9630,6 @@ void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos,
|
|||||||
CmdBuffer.back().ElemCount -= idx_unused;
|
CmdBuffer.back().ElemCount -= idx_unused;
|
||||||
_VtxWritePtr -= vtx_unused;
|
_VtxWritePtr -= vtx_unused;
|
||||||
_IdxWritePtr -= idx_unused;
|
_IdxWritePtr -= idx_unused;
|
||||||
_VtxCurrentIdx = (ImDrawIdx)VtxBuffer.Size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is one of the few function breaking the encapsulation of ImDrawLst, but it is just so useful.
|
// This is one of the few function breaking the encapsulation of ImDrawLst, but it is just so useful.
|
||||||
|
Loading…
Reference in New Issue
Block a user