Backends: OpenGL3: fixed GL loader to work on Haiku OS which does not support. (#8952)

This commit is contained in:
ocornut
2025-09-22 16:04:59 +02:00
parent dc0198a7e4
commit 301e652376
2 changed files with 6 additions and 0 deletions

View File

@@ -714,7 +714,11 @@ static void close_libgl(void)
static int is_library_loaded(const char* name, void** lib)
{
#if defined(__HAIKU__)
*lib = NULL; // no support for RTLD_NOLOAD on Haiku.
#else
*lib = dlopen(name, RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
#endif
return *lib != NULL;
}