[Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 26 12:35:32 CET 2013


On Mon, 25 Feb 2013 19:20:57 +0100
Reimar Grabowski <reimgrab at web.de> wrote:

>[...]
> 3. The FBConfig then gets passed to glxCreateNewContext which returns a GLXContext. I get the ID from this context using glxQueryContext with GLX_FBCONFIG_ID. Looking up the ID in glxinfos list of FBConfigs shows that I get a non-conformant context with the specified number of red, green, blue and alpha bits, multisampling enabled and with the specified number of samples. Everything looks fine.
> 
> 4. Then the GTK/GDK stuff kicks in (which I have not the slightest clue about) and when all is said and done I end up without multisampling in my GL code.

Querying the GLX_FBCONFIG_ID later still shows the same config *with*
sample buffers and GL_MULTISAMPLE is enabled.
Maybe some drivers need an explicit activation or more parameters?


Mattias




More information about the Lazarus mailing list