From: Jon S. <jon...@ya...> - 2004-05-28 00:55:31
|
--- Ian Romanick <id...@us...> wrote: > Here's the deal. glXGetProcAddress *NEVER* returns NULL. It returns a > pointer to a dispatch function. If you request an unknown function, it > will dynamically generate a dispatch for it. Try calling > 'glXGetProcAddressARB((const GLubyte*)"glThisFunctionDoesntExist");". > Getting a pointer back isn't enough. You have to look at the extension > string to be sure the extension is supported. If I'm not mistaken, the > GLX spec says that calling a function for an unsupported extension give > "undefined" behavior. Why do you dynamically generate a dispatch for unknown functions instead of just returning null? What does this dispatch dispatch to? ===== Jon Smirl jon...@ya... __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ |