| 4677 | } |
| 4678 | |
| 4679 | void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) |
| 4680 | { |
| 4681 | // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. |
| 4682 | // The other buffers tends to amortize much faster. |
| 4683 | window->MemoryCompacted = false; |
| 4684 | window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); |
| 4685 | window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); |
| 4686 | window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; |
| 4687 | } |
| 4688 | |
| 4689 | void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) |
| 4690 | { |