[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    glXChooseFBConfig not giving me what I want
From:       "andrew rader" <andrew.r.rader () gmail ! com>
Date:       2008-03-28 23:10:15
Message-ID: 1d715d360803281610q9d3d8f8obed103059acc950d () mail ! gmail ! com
[Download RAW message or body]

Hi again,

to repeat my earlier mail, I'm working on a small compositing wm for
funsies, and I've again run into an issue. I'm using as my guide
what's in compiz as well as the usage example near the bottom of this
page: http://people.freedesktop.org/~davidr/GLX_EXT_texture_from_pixmap.txt

First problem: the below snippit returns 0 configurations:

    const int fb_attrs[] = { GLX_DRAWABLE, GLX_PIXMAP_BIT, None };
    fb_configs = glXChooseFBConfig(dpy, screen_num, fb_attrs, &n_configs);
    // n_configs now equals 0 :(

Does that mean I'm somehow missing GLX Pixmap support? do I need it?
(I notice compiz doesn't appear to check for it)

Next problem: If instead of the above I just iterate through all of
the configs using glXGetFBConfigs, none of the configurations support
GLX_BIND_TO_TEXTURE_TARGETS_EXT (glXGetFBConfigAttrib returns 0 for
all of the configs). Is this needed? I tried ignoring this and used
GL_TEXTURE_2D rather than GLX_TEXTURE_2D_EXT (and
GLX_TEXTURE_RECTANGLE_BIT_EXT) but I end up with just a white
texture... If I do try and use either of the EXT targets my machine
hardlocks :(
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic