lwjglgamedev/lwjglbook-leg

CH28: Game rendering tiny in window

Closed this issue · 2 comments

I imported the project into IntelliJ and when I run, the game is only rendered tiny in the bottom left corner.
image

If I minimize the window, it resizes the window to that tiny size.
If I then resize the entire window to be larger, the game seems to be rendered super zoomed-in
image

Ok, I will try to fix it on the weeked. It seems that the buffers do not take account properly of resizing. Thanks for reporting.

Fixed. It seems that the behaviour of GLFW has changed in latest versions. In any case, I was doing quite a silly thing by setting a size 100x100 when maximizing. Now I get the surface dimensions. Much better approach.