lwjglgamedev / lwjglbook-leg

Source code of the chapters of the book 3D Game Development with LWJGL 3
https://ahbejarano.gitbook.io/lwjglgamedev/
Apache License 2.0
560 stars 202 forks source link

CH28: Game rendering tiny in window #103

Closed cleverpanda closed 2 years ago

cleverpanda commented 2 years ago

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

lwjglgamedev commented 2 years ago

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.

lwjglgamedev commented 2 years ago

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.