Fixed ImGui bug that prevented image buttons from working when multiple frames are in flight

docking
TheCherno 3 years ago
parent 09c9a04f9f
commit 6d706d9302

@ -1000,6 +1000,8 @@ bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size
if (window->SkipItems)
return false;
ImGui::KeepAliveID(id);
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2);
ItemSize(bb);
if (!ItemAdd(bb, id))

Loading…
Cancel
Save