void GLContext::platform_init(const GLOptions &opts)
{
- priv = new Private;
-
vector<int> attribs;
attribs.push_back(GLX_RGBA);
XVisualInfo *vi = glXChooseVisual(dpy, DefaultScreen(dpy), &attribs.front());
if(!vi)
throw unsupported_gl_mode(opts);
+
+ priv = new Private;
priv->context = glXCreateContext(dpy, vi, 0, true);
XSetWindowAttributes attr;