diff options
author | Jonathan White <[email protected]> | 2008-08-06 16:37:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-08-06 16:37:49 -0600 |
commit | bd953fdd549310638b6960f358b31a40c05ca680 (patch) | |
tree | d44e9975c2a79eb0acdc3f9dc5042d3ad54b1128 /src/egl/main/egldriver.c | |
parent | 695fc325032f642dea6a10267a57c3d9758bea62 (diff) |
egl: fixes for Windows
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r-- | src/egl/main/egldriver.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index f5edb58f433..43b1f519034 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -146,10 +146,12 @@ _eglChooseDriver(_EGLDisplay *dpy) (void) DefaultDriverName; +#if defined(_EGL_PLATFORM_X) /* First, if the EGL_DRIVER env var is set, use that */ driverName = getenv("EGL_DRIVER"); if (driverName) return _eglstrdup(driverName); +#endif #if 0 if (!displayString) { @@ -217,7 +219,8 @@ _eglOpenDriver(_EGLDisplay *dpy, const char *driverName, const char *args) #if defined(_EGL_PLATFORM_WINDOWS) /* Use static linking on Windows for now */ -#ifdef WINDOWS_STATIC_LINK +#ifdef WINDOWS_STATIC_LINK + lib = 0; mainFunc = (_EGLMain_t)_eglMain; #else /* XXX untested */ |