This is the libGL part of Mesa. MesaLib is a 3-D graphics library with an API which is very similar to that of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax or state machine, it is being used with authorization from Silicon Graphics, Inc. However, the author makes no claim that Mesa is in any way a compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
16 lines
522 B
Text
16 lines
522 B
Text
$NetBSD: patch-ah,v 1.1.1.1 2010/01/03 14:32:17 pallegra Exp $
|
|
|
|
--- src/glx/x11/dri_common.c.orig 2009-10-20 19:48:07.000000000 +0000
|
|
+++ src/glx/x11/dri_common.c
|
|
@@ -106,7 +106,11 @@ driOpenDriver(const char *driverName)
|
|
int len;
|
|
|
|
/* Attempt to make sure libGL symbols will be visible to the driver */
|
|
+#ifdef __NetBSD__
|
|
+ glhandle = dlopen("libGL.so", RTLD_NOW | RTLD_GLOBAL);
|
|
+#else
|
|
glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL);
|
|
+#endif
|
|
|
|
libPaths = NULL;
|
|
if (geteuid() == getuid()) {
|