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);