Use RTLD_DEFAULT, rather than relying on NULL happening to map to it as it
does on Linux.
This commit is contained in:
parent
323fec2029
commit
4e3a4cfdd1
|
@ -1,3 +1,11 @@
|
||||||
|
2006-04-01 Eric Anholt <anholt@FreeBSD.org>
|
||||||
|
|
||||||
|
reviewed by: keithp
|
||||||
|
|
||||||
|
* GL/glx/glxdri.c: (__glXDRIscreenProbe):
|
||||||
|
Use RTLD_DEFAULT, rather than relying on NULL happening to map to it as
|
||||||
|
it does on Linux.
|
||||||
|
|
||||||
2006-04-01 Adam Jackson <ajax@freedesktop.org>
|
2006-04-01 Adam Jackson <ajax@freedesktop.org>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -724,7 +724,7 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
|
||||||
char filename[128];
|
char filename[128];
|
||||||
Bool isCapable;
|
Bool isCapable;
|
||||||
|
|
||||||
if (dlsym (NULL, "DRIQueryDirectRenderingCapable") == NULL) {
|
if (dlsym (RTLD_DEFAULT, "DRIQueryDirectRenderingCapable") == NULL) {
|
||||||
LogMessage(X_ERROR, "AIGLX: DRI module not loaded\n");
|
LogMessage(X_ERROR, "AIGLX: DRI module not loaded\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue