summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-04-02 22:31:13 +0000
committerKristian Høgsberg <krh@redhat.com>2006-04-02 22:31:13 +0000
commit7e085f52b6f07c076bd3bcfdce27c17d14d7822e (patch)
treed75f186a7e15e76972c185404f5a3e2e6d9983bb
parentb2097b99a2e6cc045ee9b6d80946bc06c4d9302c (diff)
Use xf86LoaderCheckSymbol to check for DRI symbols instead of dlsym,
avoiding RTLD_DEFAULT. (__glXDRIscreenProbe): Change GLX-DRI to AIGLX in LogMessage for consitency.
-rw-r--r--ChangeLog7
-rw-r--r--GL/glx/glxdri.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b0d16e507..35e8651bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-02 Kristian Høgsberg <krh@redhat.com>
+
+ * GL/glx/glxdri.c (__glXDRIscreenProbe): Use xf86LoaderCheckSymbol
+ to check for DRI symbols instead of dlsym, avoiding RTLD_DEFAULT.
+ (__glXDRIscreenProbe): Change GLX-DRI to AIGLX in LogMessage for
+ consitency.
+
2006-04-02 Adam Jackson <ajax@freedesktop.org>
* hw/kdrive/ati/Makefile.am:
diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c
index d70273a20..4935b0aca 100644
--- a/GL/glx/glxdri.c
+++ b/GL/glx/glxdri.c
@@ -724,7 +724,7 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
char filename[128];
Bool isCapable;
- if (dlsym (RTLD_DEFAULT, "DRIQueryDirectRenderingCapable") == NULL) {
+ if (!xf86LoaderCheckSymbol("DRIQueryDirectRenderingCapable")) {
LogMessage(X_ERROR, "AIGLX: DRI module not loaded\n");
return NULL;
}
@@ -917,7 +917,7 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
xfree(screen);
- LogMessage(X_ERROR, "GLX-DRI: reverting to software rendering\n");
+ LogMessage(X_ERROR, "AIGLX: reverting to software rendering\n");
return NULL;
}