Skip to content

Commit

Permalink
fix imgui code
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jul 4, 2024
1 parent 61d4bc2 commit 2b21727
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -174,4 +168,4 @@ public void dispose() {
ImGui.disposeStatic();
ImGui.DestroyContext();
}
}
}

0 comments on commit 2b21727

Please sign in to comment.