diff --git a/src/client/Client.cc b/src/client/Client.cc index 1d2af11..de002e4 100755 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -75,5 +75,8 @@ void Client::resize_window(int width, int height) { glViewport(0, 0, width, height); float aspect = (float)width / (float)height; + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); glOrtho(-1.2 * aspect, 1.2 * aspect, -1.2, 1.2, 1, -1); + glMatrixMode(GL_MODELVIEW); }