glViewport(x, y, width, height);
When resizing the window you need to tell OpenGL to use the new size:Code: [Select] glViewport(x, y, width, height);