[cairo] glitztest and pbuffers

Jon Smirl jonsmirl at yahoo.com
Wed May 26 18:51:47 PDT 2004


--- David Reveman <c99drn at cs.umu.se> wrote:
> > The background surface is created as an offscreen surface but then
> > glXMakeCurrent() is used on it. This makes me think it was meant to be a
> > pbuffer.
> 
> A backend should never try to make a "not drawable" surface current, it
> should instead make the root context and the root drawable current and
> return "not supported" to the glitz core.

This may be causing me problems then, I added the close root call to work around
minglx's single window support.

from glitztest.c....

  glitz_glx_close_root(dpy, screen);

  if (!onscreen_format) {
    printf ("no onscreen format found\n");
    exit (1);
  }


void glitz_glx_close_root(Display *display,
                           int screen) 
{
  glitz_glx_screen_info_t *screen_info =
    glitz_glx_screen_info_get (display, screen);
    
  XDestroyWindow (display, screen_info->root_drawable);
  
  screen_info->root_drawable = None;
}




=====
Jon Smirl
jonsmirl at yahoo.com


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 




More information about the cairo mailing list