|
@@ -118,7 +118,7 @@ extern "C" {
|
|
** included as <GL/glcorearb.h>.
|
|
** included as <GL/glcorearb.h>.
|
|
**
|
|
**
|
|
** glcorearb.h includes only APIs in the latest OpenGL core profile
|
|
** glcorearb.h includes only APIs in the latest OpenGL core profile
|
|
-** implementation together with APIs in newer ARB extensions which
|
|
|
|
|
|
+** implementation together with APIs in newer ARB extensions which
|
|
** can be supported by the core profile. It does not, and never will
|
|
** can be supported by the core profile. It does not, and never will
|
|
** include functionality removed from the core profile, such as
|
|
** include functionality removed from the core profile, such as
|
|
** fixed-function vertex and fragment processing.
|
|
** fixed-function vertex and fragment processing.
|
|
@@ -666,7 +666,8 @@ static GL3WglProc (*glx_get_proc_address)(const GLubyte *);
|
|
|
|
|
|
static int open_libgl(void)
|
|
static int open_libgl(void)
|
|
{
|
|
{
|
|
- libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL);
|
|
|
|
|
|
+ // While most systems use libGL.so.1, NetBSD seems to use that libGL.so.3. See https://github.com/ocornut/imgui/issues/6983
|
|
|
|
+ libgl = dlopen("libGL.so", RTLD_LAZY | RTLD_LOCAL);
|
|
if (!libgl)
|
|
if (!libgl)
|
|
return GL3W_ERROR_LIBRARY_OPEN;
|
|
return GL3W_ERROR_LIBRARY_OPEN;
|
|
*(void **)(&glx_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB");
|
|
*(void **)(&glx_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB");
|