X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fglx%2Fglcontext.cpp;h=e4662f37627ceb18685c660692704f065b45e5f1;hb=971d9f711244232c991d77e09b2d801eba8e6d1a;hp=b3d8ed0565d867e6f8ab06df0095232d81c73e04;hpb=7cd7824857aa9b95a9df40e782bfc121854e1d9c;p=libs%2Fgui.git diff --git a/source/graphics/glx/glcontext.cpp b/source/graphics/glx/glcontext.cpp index b3d8ed0..e4662f3 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; @@ -92,7 +92,6 @@ void GLContext::swap_buffers() void GLContext::window_resized(unsigned w, unsigned h) { XMoveResizeWindow(display.get_private().display, priv->subwnd, 0, 0, w, h); - glViewport(0, 0, w, h); } } // namespace Graphics