[UI] Fixed issue with multiple ImGui windows having the same ID
This commit is contained in:
parent
8f647c548d
commit
afe74e3d72
|
@ -16,7 +16,7 @@
|
|||
namespace xe {
|
||||
namespace ui {
|
||||
|
||||
uint64_t ImGuiDialog::next_window_id_ = 0;
|
||||
std::atomic<uint64_t> ImGuiDialog::next_window_id_ = 0;
|
||||
|
||||
ImGuiDialog::ImGuiDialog(ImGuiDrawer* imgui_drawer)
|
||||
: imgui_drawer_(imgui_drawer) {
|
||||
|
|
|
@ -49,7 +49,7 @@ class ImGuiDialog {
|
|||
virtual void OnDraw(ImGuiIO& io) {}
|
||||
|
||||
private:
|
||||
static uint64_t next_window_id_;
|
||||
static std::atomic<uint64_t> next_window_id_;
|
||||
|
||||
ImGuiDrawer* imgui_drawer_ = nullptr;
|
||||
bool has_close_pending_ = false;
|
||||
|
|
Loading…
Reference in New Issue