void GLContext::platform_init(const GLOptions &opts)
{
- priv = new Private;
-
vector<unsigned> attribs;
attribs.push_back(CPF_DEPTH_SIZE);
if(!pixfmt)
throw unsupported_gl_mode(opts);
+ priv = new Private;
priv->context = create_gl_context(pixfmt);
destroy_pixel_format(pixfmt);