Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: glXChooseFBConfigSGIX

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    652

    glXChooseFBConfigSGIX

    Hello!

    IŽ m using
    Code :
    int fbconfigID=-1;
    rval=glXGetFBConfigAttribSGIX(display, fbconfigs[0], GLX_FBCONFIG_ID_SGIX, &fbconfigID);
    in order to get the ID of the given fbconfig ( I get back '85', for a floating point pbuffer). At a later point I use
    Code :
     int fbAttribs[4]={GLX_FBCONFIG_ID_SGIX, fbconfigID, 0,0};
    	int num_formats=0;
    	GLXFBConfigSGIX *fbconfigs=glXChooseFBConfigSGIX(display, screen, &fbAttribs[0],  &num_formats);]
    in order to retrieve the corresponding fbconfig back. Unfortunately I get back a NULL pointer, indicating that a fbconfig of this ID doesnŽ t exist. What is going on here? Why isnŽ t that working?

    IŽ m using a Geforce6800GT with newest drivers on Suse Linux 9.0

  2. #2
    Junior Member Regular Contributor
    Join Date
    May 2002
    Location
    Portland, OR
    Posts
    223

    Re: glXChooseFBConfigSGIX

    In your code snippet you use chosenformat when you get the FBconfig ID, but fbconfigID when you use it. Is that what's actually in your code?

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    652

    Re: glXChooseFBConfigSGIX

    Sorry for confusing you. I actually c&pŽed the snippet out of my code. To answer your question, the correct ID will be used in both cases. IŽll try to edit my post accordingly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •