Skip to content

Commit

Permalink
Fix more pre-swift 6 issues with default cxx args.
Browse files Browse the repository at this point in the history
Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Oct 29, 2024
1 parent fda5211 commit c1848f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/GLFWMetalApp/GLFWMetalApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ public struct GLFWMetalApp

// setup context.

ImGui.CreateContext()
ImGui.CreateContext(nil)
var io = ImGui.GetIO().pointee
io.ConfigFlags |= Int32(ImGuiConfigFlags_NavEnableKeyboard.rawValue)
io.ConfigFlags |= Int32(ImGuiConfigFlags_NavEnableGamepad.rawValue)

// setup style & font.

ImGui.StyleColorsDark()
ImGui.StyleColorsDark(nil)

guard let ttfFile = Bundle.main.path(forResource: "fonts/default.ttf", ofType: nil)
else { fatalError("could not find default font.") }
Expand Down

0 comments on commit c1848f4

Please sign in to comment.