Skip to content

Mac OS Compatibility Issues #37

Description

@AveryNorris

I've had a few issues running this in Mac OS

First of all, the program will crash with no error unless you remove the line

"GL.DebugMessageCallback(DebugProcCallback, IntPtr.Zero);"
at 32:Window.cs

I'm not really sure why, there is no error message that I could find.

Additionally, once the program starts up, ImGUI only occupies the bottom left corner

I've found that changing two lines fixes this,

(449: ImguiImplOpenTK4.cs)
should be
io.DisplaySize = new(clientSize.X, clientSize.Y);

and

(452: ImguiImplOpenTK4.cs)
should be
io.DisplayFramebufferScale = new(fbSize.X / clientSize.X, fbSize.Y / clientSize.Y);

I am sure this solution is merely a bandaid, but I thought it was an important clue to give the fix I found.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions