From e3e8f74583360ec67cf2b041f62dd3b0224af19b Mon Sep 17 00:00:00 2001 From: CalvinWilkinson Date: Thu, 5 Sep 2024 15:42:57 +0100 Subject: [PATCH] fix: fix issue with hard coded values --- Velaptor/OpenGL/GLWindow.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Velaptor/OpenGL/GLWindow.cs b/Velaptor/OpenGL/GLWindow.cs index 99d0bf9e1..48ae76ccc 100644 --- a/Velaptor/OpenGL/GLWindow.cs +++ b/Velaptor/OpenGL/GLWindow.cs @@ -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(1280, 720)); + // Manually invoke the resize to update the rest of the system such as the viewport. + GLWindow_Resize(new Vector2D((int)width, (int)height)); this.appService.Init(); }