return GL_FALSE;
}
-bool SGIsOpenGLExtensionSupported(char *extName) {
+bool SGIsOpenGLExtensionSupported(const char *extName) {
// Returns GL_TRUE if the OpenGL Extension whose name is *extName
// is supported by the system, or GL_FALSE otherwise.
//
libHandle = dlopen(NULL, RTLD_LAZY);
if (!libHandle) {
-#if defined (__FreeBSD__)
const char *error = dlerror();
-#else
- char *error = dlerror();
-#endif
if (error) {
SG_LOG(SG_GENERAL, SG_INFO, error);
return 0;
} else if (libHandle != NULL) {
fptr = dlsym(libHandle, func);
-#if defined (__FreeBSD__)
const char *error = dlerror();
-#else
- char *error = dlerror();
-#endif
if (error)
SG_LOG(SG_GENERAL, SG_INFO, error);
}