You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GL.Viewport() in the BaseTkOpenGlControl class should take into account the scale factor of the monitor in order to display correctly on MacOS.
In the below example, the viewport should be scaled by a factor of 2 to work fine :
With OpenTK+ImGUI the below code is used when a window is resized for instance (OpenTK propose a GameWindow.FramebufferSize in order to have the correct value versus the Client size :
// Update the opengl viewport
Vector2i fb = this.FramebufferSize;
GL.Viewport(0, 0, fb.X, fb.Y); // 2048 * 1536
// Tell ImGui of the new size
_controller.WindowResized(ClientSize.X, ClientSize.Y); // 1024 * 768
I don't know what is the equivalent for OpenTK+Avalonia, that's why I'm opening this issue
The text was updated successfully, but these errors were encountered:
The GL.Viewport() in the BaseTkOpenGlControl class should take into account the scale factor of the monitor in order to display correctly on MacOS.
In the below example, the viewport should be scaled by a factor of 2 to work fine :
With OpenTK+ImGUI the below code is used when a window is resized for instance (OpenTK propose a GameWindow.FramebufferSize in order to have the correct value versus the Client size :
I don't know what is the equivalent for OpenTK+Avalonia, that's why I'm opening this issue
The text was updated successfully, but these errors were encountered: