mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-22 08:50:51 +00:00
ImGui: Replaced helpers Push/PopEnabled with Begin/EndDisabled functionality from ImGui.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user