Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnResize logic isn't correct #96

Open
NvC-DmN-CH opened this issue Jul 18, 2024 · 2 comments
Open

OnResize logic isn't correct #96

NvC-DmN-CH opened this issue Jul 18, 2024 · 2 comments

Comments

@NvC-DmN-CH
Copy link

GL.Viewport(0, 0, Size.X, Size.Y);

I set the window to (1280, 720) but the GL.Viewport is actually set to:
image

When I used ClientRectangle.Size.X and ClientRectangle.Size.Y it became proper:
image

@NogginBops
Copy link
Member

The correct property is actually FramebufferSize, others will break on macOS.
Will fix next time I do some work on these tutorials (if no one else has made a PR)

@NvC-DmN-CH
Copy link
Author

Oh ok, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants