ImGui: Replaced helpers Push/PopEnabled with Begin/EndDisabled functionality from ImGui.

This commit is contained in:
Бранимир Караџић
2025-10-22 17:08:20 -07:00
parent 0cbd4b5c51
commit 6175aa2bb7
5 changed files with 11 additions and 31 deletions

View File

@@ -178,9 +178,9 @@ public:
ImGui::Text("%d draw calls", bgfx::getStats()->numDraw);
ImGui::PushEnabled(instancingSupported);
ImGui::BeginDisabled(!instancingSupported);
ImGui::Checkbox("Use Instancing", &m_useInstancing);
ImGui::PopEnabled();
ImGui::EndDisabled();
ImGui::Text("Grid Side Size:");
ImGui::SliderInt("##size", (int*)&m_sideSize, 1, 512);