Skip to content

Commit

Permalink
DPL: allow headless remote GUI also on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jul 18, 2022
1 parent 7d9d804 commit 6dc13a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DebugGUI/src/DebugGUIMacos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ static void default_error_callback(int error, const char *description) {
ImGui::CreateContext();
ImGuiIO &io = ImGui::GetIO();
ImGui::StyleColorsDark();
id<MTLDevice> device = MTLCreateSystemDefaultDevice();
io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB;
io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT;
io.KeyMap[ImGuiKey_RightArrow] = GLFW_KEY_RIGHT;
Expand Down Expand Up @@ -129,6 +130,7 @@ static void default_error_callback(int error, const char *description) {
if (io.Fonts->ConfigData.empty()) io.Fonts->AddFontDefault();
// io.Fonts->Build();
io.DisplaySize = ImVec2(1280, 720);
ImGui_ImplMetal_Init(device);
}

ImPlot::CreateContext();
Expand Down

0 comments on commit 6dc13a0

Please sign in to comment.