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() is not using FramebufferSize property #93

Open
DigitalBox98 opened this issue Feb 26, 2024 · 1 comment
Open

OnResize() is not using FramebufferSize property #93

DigitalBox98 opened this issue Feb 26, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@DigitalBox98
Copy link

The current samples are not handling correctly the resizing of the window :

Capture d’écran 2024-02-26 à 18 45 15

Current code :
GL.Viewport(0, 0, Size.X, Size.Y);

Proposal for fix :
Vector2i fb = this.FramebufferSize;
GL.Viewport(0, 0, fb.X, fb.Y);

@DigitalBox98 DigitalBox98 changed the title OnResize() is not using FramebufferSize properties OnResize() is not using FramebufferSize property Feb 26, 2024
@NogginBops NogginBops added bug Something isn't working enhancement New feature or request labels Feb 26, 2024
@NogginBops
Copy link
Member

Thanks for the report! I had totally forgotten to do this.
Will make a PR for this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants