X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fglx%2Fglcontext.cpp;h=26275a4b6b7ee5cf6626b23f00abe6ddee92f4a2;hp=b3d8ed0565d867e6f8ab06df0095232d81c73e04;hb=0c9df2a54cd38ba14ffc651bc96914614a08db46;hpb=e6d64e95eeac250b092366b95c5dc3bbfcf717b5 diff --git a/source/graphics/glx/glcontext.cpp b/source/graphics/glx/glcontext.cpp index b3d8ed0..26275a4 100644 --- a/source/graphics/glx/glcontext.cpp +++ b/source/graphics/glx/glcontext.cpp @@ -23,26 +23,26 @@ struct GLContext::Private void GLContext::platform_init(const GLOptions &opts) { vector attribs; - + attribs.push_back(GLX_RGBA); attribs.push_back(GLX_DEPTH_SIZE); attribs.push_back(1); - + if(opts.alpha) { attribs.push_back(GLX_ALPHA_SIZE); attribs.push_back(1); } - + if(opts.stencil) { attribs.push_back(GLX_STENCIL_SIZE); attribs.push_back(1); } - + if(opts.doublebuffer) attribs.push_back(GLX_DOUBLEBUFFER); - + if(opts.multisample>0) { attribs.push_back(GLX_SAMPLE_BUFFERS_ARB); @@ -50,7 +50,7 @@ void GLContext::platform_init(const GLOptions &opts) attribs.push_back(GLX_SAMPLES_ARB); attribs.push_back(opts.multisample); } - + attribs.push_back(0); DisplayHandle dpy = display.get_private().display;