void GLContext::platform_init(const GLOptions &opts)
{
- priv = new Private;
-
HDC dc = GetDC(window.get_private().window);
PIXELFORMATDESCRIPTOR pfd;
throw unsupported_gl_mode(opts);
SetPixelFormat(dc, pf_index, &pfd);
+ priv = new Private;
priv->context = wglCreateContext(dc);
wglMakeCurrent(dc, priv->context);
ReleaseDC(window.get_private().window, dc);
}
-void GLContext::window_resized(unsigned w, unsigned h)
-{
- glViewport(0, 0, w, h);
-}
+void GLContext::window_resized(unsigned, unsigned)
+{ }
} // namespace Graphics
} // namespace Msp