PDA

View Full Version : glXChooseFBConfigSGIX



skynet
10-07-2004, 11:27 PM
Hello!

IŽ m using
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

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

idr
10-12-2004, 02:39 PM
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?

skynet
10-12-2004, 10:36 PM
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.