Module: Mesa
Branch: master
Commit: 6e9da8ab6085b72473aa414922aa9cfa6ee508f9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e9da8ab6085b72473aa414922aa9cfa6ee508f9

Author: Kristian Høgsberg <[email protected]>
Date:   Wed May 26 21:33:18 2010 -0400

egl: Return NULL if we fail to load a default driver

---

 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 566554d..2f42e64 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;
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to