From 6e9da8ab6085b72473aa414922aa9cfa6ee508f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 26 May 2010 21:33:18 -0400 Subject: [PATCH] egl: Return NULL if we fail to load a default driver --- src/egl/main/egldriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2