Skip to content

OnResize() is not using FramebufferSize property #93

@DigitalBox98

Description

@DigitalBox98

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions