OpenGL example: allow resizing window.