X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fcgl%2Fglcontext.cpp;h=7e06d2333aea4c631b0e956e0fbe6047d5380737;hp=94b9b2f465652a36a215696ebfccfbf1fa6dbac0;hb=7cd7824857aa9b95a9df40e782bfc121854e1d9c;hpb=d26a3b66814216fa3a29c8a0582614b7349b13f2 diff --git a/source/graphics/cgl/glcontext.cpp b/source/graphics/cgl/glcontext.cpp index 94b9b2f..7e06d23 100644 --- a/source/graphics/cgl/glcontext.cpp +++ b/source/graphics/cgl/glcontext.cpp @@ -19,8 +19,6 @@ struct GLContext::Private void GLContext::platform_init(const GLOptions &opts) { - priv = new Private; - vector attribs; attribs.push_back(CPF_DEPTH_SIZE); @@ -55,6 +53,7 @@ void GLContext::platform_init(const GLOptions &opts) if(!pixfmt) throw unsupported_gl_mode(opts); + priv = new Private; priv->context = create_gl_context(pixfmt); destroy_pixel_format(pixfmt);