ImDrawListSplitter: fixed an issue merging channels if the last submitted draw command used a different texture. (#2506)

This commit is contained in:
omar
2019-09-17 20:27:15 +02:00
parent b48dc067ae
commit 098591fe4c
2 changed files with 2 additions and 0 deletions

View File

@ -1301,6 +1301,7 @@ void ImDrawListSplitter::Merge(ImDrawList* draw_list)
}
draw_list->_IdxWritePtr = idx_write;
draw_list->UpdateClipRect(); // We call this instead of AddDrawCmd(), so that empty channels won't produce an extra draw call.
draw_list->UpdateTextureID();
_Count = 1;
}