summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-07-24 18:16:41 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-07-24 18:16:41 +0000
commitfad3d489121069119e3effd4f1bf4b901d986ef3 (patch)
tree74ecdbcd46b226c6dac644ddf59bd55367e8d446 /dist
parent96f2ccb57e77355e1573f52e417993cdd95d819a (diff)
When a dri driver dlopen()s libGL to try and get the correct symbols (in
case libGL itself was dlopen()ed), it was using "libGL.so.1" (linux convention, doesn't work on OpenBSD). Change it to "libGL.so" so it has a hope in hell of working. I finally wrote this patch when trying to port perl's OpenGL modules ages ago and i finally decided that hacking each instance of dlopening libGL to use RTLD_GLOBAL was dumb. ok matthieu@
Diffstat (limited to 'dist')
-rw-r--r--dist/Mesa/src/glx/dri_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/Mesa/src/glx/dri_common.c b/dist/Mesa/src/glx/dri_common.c
index d6ce681d7..d26bdfff4 100644
--- a/dist/Mesa/src/glx/dri_common.c
+++ b/dist/Mesa/src/glx/dri_common.c
@@ -106,7 +106,7 @@ driOpenDriver(const char *driverName)
int len;
/* Attempt to make sure libGL symbols will be visible to the driver */
- glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL);
+ glhandle = dlopen("libGL.so", RTLD_NOW | RTLD_GLOBAL);
libPaths = NULL;
if (geteuid() == getuid()) {