diff options
author | Kristian Høgsberg <[email protected]> | 2010-05-26 21:33:18 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-05-27 09:59:27 -0400 |
commit | 6e9da8ab6085b72473aa414922aa9cfa6ee508f9 (patch) | |
tree | 54e37a859e15309000d5856dafd1b9a4fc56cf98 /src | |
parent | 7d7bdee50d4e7ab888710eb1da1a181ef366e8ff (diff) |
egl: Return NULL if we fail to load a default driver
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/main/egldriver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 566554d51dc..2f42e64fbe0 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -571,7 +571,7 @@ _eglLoadDefaultDriver(EGLDisplay dpy, EGLint *major, EGLint *minor) _eglUnlockMutex(_eglGlobal.Mutex); - return drv; + return _eglGlobal.NumDrivers > 0 ? drv : NULL; } |