From 2b2172767ccb962af24f45fbf8543d54e768dbc4 Mon Sep 17 00:00:00 2001 From: Natan Date: Thu, 4 Jul 2024 16:19:52 -0300 Subject: [PATCH] fix imgui code --- .../imgui/example/tests/imgui/ImGuiTestsApp.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/gdx-tests/core/src/main/java/com/github/xpenatan/imgui/example/tests/imgui/ImGuiTestsApp.java b/examples/gdx-tests/core/src/main/java/com/github/xpenatan/imgui/example/tests/imgui/ImGuiTestsApp.java index 14208b24..946dadc2 100644 --- a/examples/gdx-tests/core/src/main/java/com/github/xpenatan/imgui/example/tests/imgui/ImGuiTestsApp.java +++ b/examples/gdx-tests/core/src/main/java/com/github/xpenatan/imgui/example/tests/imgui/ImGuiTestsApp.java @@ -43,13 +43,7 @@ public class ImGuiTestsApp implements Screen { @Override public void show() { testList = TeaVMGdxTests.getTestList(); - if(Gdx.app.getType() == Application.ApplicationType.WebGL) { - // Not possible to have ini filename with webgl - ImGui.CreateContext(false); - } - else { - ImGui.CreateContext(true); - } + ImGui.CreateContext(); ImGuiIO io = ImGui.GetIO(); io.ConfigFlags(ImGuiConfigFlags.ImGuiConfigFlags_DockingEnable); @@ -174,4 +168,4 @@ public void dispose() { ImGui.disposeStatic(); ImGui.DestroyContext(); } -} +} \ No newline at end of file