GDK+GLX 1.4 lazarus / 13-General ---------------------------------------------------------------------- Rustam Asmandiarov · 2010-03-01 13:59 Hello, I had a problem with GDK and GLX 1.4. I cannot connect MultiSampling. Having exposed in attributes GLX_SAMPLE_BUFFERS, GL_TRUE, GLX_SAMPLES, 4 it and has not earned. Having altered lazarus/fpc/2.4.0/source/packages/opengl/examples/glxtest.pp to me it was possible to connect MultiSampling. I believe a problem in GDK it as that locks usage MultiSampling. I apologise for my English, I use a translator. type PGLXFBConfigArray = array of GLXFBConfig; //Attributes compatible with glxinfo const Attribute:array [0..32] of Integer= ( GLX_BUFFER_SIZE,32, GLX_RED_SIZE, 8, //* the maximum number of bits per component */ GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_ALPHA_SIZE, 0, GLX_AUX_BUFFERS, 4, GLX_DOUBLEBUFFER, gl_True, //* Request a double-buffered color buffer with */ GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, 8, GLX_ACCUM_RED_SIZE, 16, GLX_ACCUM_GREEN_SIZE, 16, GLX_ACCUM_BLUE_SIZE, 16, GLX_ACCUM_ALPHA_SIZE, 16, GLX_SAMPLE_BUFFERS_ARB, GL_TRUE, GLX_SAMPLES_ARB, 2, GLX_CONFIG_CAVEAT,GLX_NON_CONFORMANT_CONFIG, None ); begin fbConfigs := glXChooseFBConfig( CurXDisplay, DefaultScreen(CurXDisplay), Attribute, @numReturned ); FRenderingContext:=glXCreateContextAttribsARB(CurXDisplay,fbConfigs[0] , nil, True,Attr ); ... glXMakeCurrent(CurXDisplay,CurXWindow,CurXWindow,FRenderingContext) ---------------------------------------------------------------------- Ocye · 2014-12-19 13:17 Any news here? Multisampling still does not work on Windows and Qt. Gtk2 is fine. Here is another discussion - with no clear solutiion. http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus- TOpenGLControl-multisampling-not-working-Linux-GLX-td4029212.html glGetIntegerv(GL_SAMPLE_BUFFERS, @samplebuffers); //is 0