Skip to content

Commit

Permalink
fix: fix issue with hard coded values
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWilkinson committed Sep 6, 2024
1 parent 65b6eb8 commit e3e8f74
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Velaptor/OpenGL/GLWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,8 @@ private void Init(uint width, uint height)
this.glInputContext.Mice[0].MouseMove += GLMouseMove_MouseMove;
this.glInputContext.Mice[0].Scroll += GLMouseInput_MouseScroll;

// Manually invoke the resize to set the viewport
// This will make sure that no strange issues occur during initialization.
// One strange issue was without this line and a window size of exactly 1280 x 720,
// all rendering would not occur. This prevents this issue from occurring.
GLWindow_Resize(new Vector2D<int>(1280, 720));
// Manually invoke the resize to update the rest of the system such as the viewport.
GLWindow_Resize(new Vector2D<int>((int)width, (int)height));

this.appService.Init();
}
Expand Down

0 comments on commit e3e8f74

Please sign in to comment.