A simple accelerated GL compositor

Felix Bellaby felix at bellaby.plus.com
Sat Jul 8 15:39:33 PDT 2006


Tomasz Torcz wrote: 
> > Could you try changing GLX_DRAWABLE_TYPE (line 1154) to GLX_PIXMAP_BIT
> > (i.e. drop the redundant GLX_WINDOW_BIT) ? This _might_ get you past the
> > ChooseFBConfig even with GLX_ALPHA_SIZE set to 1 (line 1152).
> 
>   Tried that, too. It doesn't work in way similar to very first failure.

Just so that I am sure that we are on the same wavelength, could you try
setting up the fbc attributes as follows:

line 1051:
 int fbc_attr_mirror[] = {
    GLX_DOUBLEBUFFER,  False, 
    GLX_DEPTH_SIZE,    0,
    GLX_RED_SIZE,      1,
    GLX_GREEN_SIZE,    1,
    GLX_BLUE_SIZE,     1,
    GLX_ALPHA_SIZE,    1,
    GLX_RENDER_TYPE,   GLX_RGBA_BIT,
    GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT,
    None
  };

line 1146:
  int fbc_attr_root[] = {
    GLX_DOUBLEBUFFER,  False, 
    GLX_DEPTH_SIZE,    16,
    GLX_RED_SIZE,      1,
    GLX_GREEN_SIZE,    1,
    GLX_BLUE_SIZE,     1,
    GLX_ALPHA_SIZE,    1,
    GLX_RENDER_TYPE,   GLX_RGBA_BIT,
    GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT,
    None
  };

Felix




More information about the xorg mailing list