Tables: Fixed command merging when compiling with VS2013. (#6377)

This commit is contained in:
ocornut
2023-04-28 13:58:59 +02:00
parent 085fa42b7d
commit 7c291ba31b
2 changed files with 5 additions and 3 deletions

View File

@ -2383,11 +2383,11 @@ void ImGui::TableMergeDrawChannels(ImGuiTable* table)
struct MergeGroup
{
ImRect ClipRect;
int ChannelsCount;
ImBitArrayPtr ChannelsMask;
int ChannelsCount = 0;
ImBitArrayPtr ChannelsMask = NULL;
};
int merge_group_mask = 0x00;
MergeGroup merge_groups[4] = {};
MergeGroup merge_groups[4];
// Use a reusable temp buffer for the merge masks as they are dynamically sized.
const int max_draw_channels = (4 + table->ColumnsCount * 2);