Hello again,
Sorry for the false information, It appears I've solved the issue now. I didnt call glViewPort()
before I updated my projection.
So in summary, my code is now:
glfwSetWindowSizeCallback(window, windowSizeCallback = new GLFWWindowSizeCallback(){
@Override
public void invoke(long window, int width, int height){
Game.WIDTH = width;
Game.HEIGHT = height;
Game.aspectRatio = (float)Game.WIDTH / (float)Game.HEIGHT;
glViewport(0, 0, Game.WIDTH, Game.HEIGHT);
gfx.initGL();
Camera.initMatricies();
}
});
Thanks for the help! I think the glViewPort use with resizing should be mentioned somewhere because I didn't find it during my searches.
Cheers,
Lucas