diff --git a/reference/OpenGL/main.cpp b/reference/OpenGL/main.cpp index cca3c1257..9f10cd36c 100644 --- a/reference/OpenGL/main.cpp +++ b/reference/OpenGL/main.cpp @@ -55,6 +55,10 @@ struct OpenGLExample : GLCtrl { glVertex3d(0, 0, 1.67); glEnd(); } + + virtual void GLResize(int w, int h) { + glViewport(0, 0, (GLsizei)w, (GLsizei)h); + } virtual void MouseMove(Point p, dword) { point = p;