diff options
Diffstat (limited to 'xorg-server/glx/glxdriswrast.c')
-rw-r--r-- | xorg-server/glx/glxdriswrast.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xorg-server/glx/glxdriswrast.c b/xorg-server/glx/glxdriswrast.c index b5d707a21..1bc385b86 100644 --- a/xorg-server/glx/glxdriswrast.c +++ b/xorg-server/glx/glxdriswrast.c @@ -470,12 +470,15 @@ __glXDRIscreenProbe(ScreenPtr pScreen) screen->base.swapInterval = NULL; screen->base.pScreen = pScreen; +#ifdef _MSC_VER snprintf(filename, sizeof filename, - "%s/%s_dri.so", dri_driver_path, driverName); + "%s%s_dri.dll", dri_driver_path, driverName); -#ifdef _MSC_VER screen->driver = LoadLibrary(filename); #else + snprintf(filename, sizeof filename, + "%s/%s_dri.so", dri_driver_path, driverName); + screen->driver = dlopen(filename, RTLD_LAZY | RTLD_LOCAL); #endif if (screen->driver == NULL) { |