mirror of https://github.com/fltk/fltk
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:
parent
85c2e38825
commit
6bc5329935
|
@ -436,10 +436,10 @@ int glutDeviceGet(GLenum type) {
|
||||||
GLUTproc glutGetProcAddress(const char *procName) {
|
GLUTproc glutGetProcAddress(const char *procName) {
|
||||||
# ifdef WIN32
|
# ifdef WIN32
|
||||||
return (GLUTproc)wglGetProcAddress((LPCSTR)procName);
|
return (GLUTproc)wglGetProcAddress((LPCSTR)procName);
|
||||||
# elif defined(__APPLE__)
|
# elif defined(HAVE_GLXGETPROCADDRESSARB)
|
||||||
return (GLUTproc)0;
|
|
||||||
# else
|
|
||||||
return (GLUTproc)glXGetProcAddressARB(procName);
|
return (GLUTproc)glXGetProcAddressARB(procName);
|
||||||
|
# else
|
||||||
|
return (GLUTproc)0;
|
||||||
# endif // WIN32
|
# endif // WIN32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue