]> git.tdb.fi Git - libs/gui.git/commitdiff
Set multisample attributes correctly on glX
authorMikko Rasa <tdb@tdb.fi>
Thu, 11 Jul 2013 19:11:38 +0000 (22:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 11 Jul 2013 19:11:38 +0000 (22:11 +0300)
source/graphics/glx/glcontext.cpp

index 09a4ef8b6ee0216ab8bdc1573cee9111da19a4d4..a73b9c554760af4f1c5d368b69605533c48be16f 100644 (file)
@@ -48,6 +48,8 @@ void GLContext::platform_init(const GLOptions &opts)
        if(opts.multisample>0)
        {
                attribs.push_back(GLX_SAMPLE_BUFFERS_ARB);
+               attribs.push_back(1);
+               attribs.push_back(GLX_SAMPLES_ARB);
                attribs.push_back(opts.multisample);
        }