mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 12:25:07 +00:00
Make sure DRI module is loaded before calling DRI functions.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-03-24 Kristian Høgsberg <krh@redhat.com>
|
||||
|
||||
* GL/glx/glxdri.c (__glXDRIscreenProbe): Make sure DRI module is
|
||||
loaded before calling DRI functions.
|
||||
|
||||
2006-03-23 Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
* hw/xfree86/getconfig/getconfig.pl:
|
||||
|
||||
@@ -724,6 +724,11 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
|
||||
char filename[128];
|
||||
Bool isCapable;
|
||||
|
||||
if (dlsym (NULL, "DRIQueryDirectRenderingCapable") == NULL) {
|
||||
LogMessage(X_ERROR, "AIGLX: DRI module not loaded\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!DRIQueryDirectRenderingCapable(pScreen, &isCapable) || !isCapable) {
|
||||
LogMessage(X_ERROR,
|
||||
"AIGLX: Screen %d is not DRI capable\n", pScreen->myNum);
|
||||
|
||||
Reference in New Issue
Block a user