opentk / LearnOpenTK

A port of learnopengl.com's tutorials to OpenTK and C#.
Creative Commons Attribution 4.0 International
458 stars 115 forks source link

OnResize() is not using FramebufferSize property #93

Open DigitalBox98 opened 6 months ago

DigitalBox98 commented 6 months ago

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);

NogginBops commented 6 months ago

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