Fix viewport with OpenGL