File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -420,11 +420,8 @@ private void Init(uint width, uint height)
420
420
this . glInputContext . Mice [ 0 ] . MouseMove += GLMouseMove_MouseMove ;
421
421
this . glInputContext . Mice [ 0 ] . Scroll += GLMouseInput_MouseScroll ;
422
422
423
- // Manually invoke the resize to set the viewport
424
- // This will make sure that no strange issues occur during initialization.
425
- // One strange issue was without this line and a window size of exactly 1280 x 720,
426
- // all rendering would not occur. This prevents this issue from occurring.
427
- GLWindow_Resize ( new Vector2D < int > ( 1280 , 720 ) ) ;
423
+ // Manually invoke the resize to update the rest of the system such as the viewport.
424
+ GLWindow_Resize ( new Vector2D < int > ( ( int ) width , ( int ) height ) ) ;
428
425
429
426
this . appService . Init ( ) ;
430
427
}
You can’t perform that action at this time.
0 commit comments