[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#262633: xnest: Cannot get visuals for OpenGL applications



tag 262633 + moreinfo
thanks

On Sun, Aug 01, 2004 at 05:17:43PM +0800, john@cellform.com.au wrote:
> Package: xnest
> Version: 4.3.0.dfsg.1-4
> Severity: important
> 
> Running the following program fails under Xnest.  It works fine on the parent
> server, and xdpyinfo shows that the two have identical visuals.

[I fixed the some of the creative indenting that ended up in the bug
report.]

> #include <GL/glx.h>
> #include <X11/Xlib.h>
> #include <assert.h>
> 
> int
> main()
> {
> 
>   Display *dpy;
>   int screen;
>   XVisualInfo *vis=0;
> 
>   int attribs[]={GLX_RGBA,
> 			 
>  		 GLX_RED_SIZE,   1,
>  		 GLX_GREEN_SIZE, 1,
>  		 GLX_BLUE_SIZE,  1,
> 
>  		 None
>    };
> 
> 
>      dpy = XOpenDisplay(0);
> 
>      screen = DefaultScreen(dpy);
> 
>      vis = glXChooseVisual(dpy,screen,attribs);
> 
>      assert(vis);
> 
>      return 0;
> 
>  }

Don't you need to query for the extension first?  I don't know that Xnest
supports GLX.

See glxQueryExtension(3x).

-- 
G. Branden Robinson                |     I am only good at complaining.
Debian GNU/Linux                   |     You don't want me near your code.
branden@debian.org                 |     -- Dan Jacobson
http://people.debian.org/~branden/ |

Attachment: signature.asc
Description: Digital signature


Reply to: