diff options
author | Kristian Høgsberg <krh@redhat.com> | 2006-04-02 22:31:13 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2006-04-02 22:31:13 +0000 |
commit | 7e085f52b6f07c076bd3bcfdce27c17d14d7822e (patch) | |
tree | d75f186a7e15e76972c185404f5a3e2e6d9983bb /GL | |
parent | b2097b99a2e6cc045ee9b6d80946bc06c4d9302c (diff) |
Use xf86LoaderCheckSymbol to check for DRI symbols instead of dlsym,
avoiding RTLD_DEFAULT. (__glXDRIscreenProbe): Change GLX-DRI to AIGLX
in LogMessage for consitency.
Diffstat (limited to 'GL')
-rw-r--r-- | GL/glx/glxdri.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |