Don't use ARB function unless available (still need to do the autoconf

test...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2007-02-01 21:52:11 +00:00
parent 85c2e38825
commit 6bc5329935
1 changed files with 3 additions and 3 deletions

View File

@ -436,10 +436,10 @@ int glutDeviceGet(GLenum type) {
GLUTproc glutGetProcAddress(const char *procName) {
# ifdef WIN32
return (GLUTproc)wglGetProcAddress((LPCSTR)procName);
# elif defined(__APPLE__)
return (GLUTproc)0;
# else
# elif defined(HAVE_GLXGETPROCADDRESSARB)
return (GLUTproc)glXGetProcAddressARB(procName);
# else
return (GLUTproc)0;
# endif // WIN32
}