|
|
@ -1262,7 +1262,7 @@ void ImDrawListSplitter::Merge(ImDrawList* draw_list)
|
|
|
|
// Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command.
|
|
|
|
// Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command.
|
|
|
|
int new_cmd_buffer_count = 0;
|
|
|
|
int new_cmd_buffer_count = 0;
|
|
|
|
int new_idx_buffer_count = 0;
|
|
|
|
int new_idx_buffer_count = 0;
|
|
|
|
ImDrawCmd* last_cmd = (_Count > 0 && _Channels[0]._CmdBuffer.Size > 0) ? &_Channels[0]._CmdBuffer.back() : NULL;
|
|
|
|
ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL;
|
|
|
|
int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0;
|
|
|
|
int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0;
|
|
|
|
for (int i = 1; i < _Count; i++)
|
|
|
|
for (int i = 1; i < _Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|