diff options
author | marha <marha@users.sourceforge.net> | 2009-10-08 09:06:17 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-10-08 09:06:17 +0000 |
commit | 1ed5f8f7e461f0e04a41f922c0bdb3f661db15a3 (patch) | |
tree | 11419f258e2e04bcb31343765eb4284001a85ff7 | |
parent | c12ad17e17109c12426818c4cf2465cddff146f2 (diff) | |
download | vcxsrv-1ed5f8f7e461f0e04a41f922c0bdb3f661db15a3.tar.gz vcxsrv-1ed5f8f7e461f0e04a41f922c0bdb3f661db15a3.tar.bz2 vcxsrv-1ed5f8f7e461f0e04a41f922c0bdb3f661db15a3.zip |
Dlls in windows have the dll extension.
-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) { |