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

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 28 00:15:31 CET 2013


On Tue, 26 Feb 2013 19:42:32 +0100
Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Tue, 26 Feb 2013 19:10:53 +0100
> Reimar Grabowski <reimgrab at web.de> wrote:
> 
> > On Tue, 26 Feb 2013 16:53:25 +0100
> > Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> > 
> > > A quick look at the gtkglext-1.2.0 sources didn't reveal anything
> > > special about multisampling.
> > It is very possible that no 'special' support is needed.
> > 
> > > The first noticeable thing of gtkglext code is the special color map.
> > This could be the difference as multisampling in GLX is handled the same as for example alpha bits or color bits.
> 
> The color map functions are in gdk/x11/gdkglconfig-x11.c. The C
> looks simple, but I guess it needs some time to understand all the X
> calls and flags.

Reimar sent me a patch that allocates a simple colormap, instead of
the "sophisticated" gtkglext colormap. That seems to be enough for
multisampling. :)

Mattias




More information about the Lazarus mailing list