summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-26 21:33:18 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-27 09:59:27 -0400
commit6e9da8ab6085b72473aa414922aa9cfa6ee508f9 (patch)
tree54e37a859e15309000d5856dafd1b9a4fc56cf98 /src/egl
parent7d7bdee50d4e7ab888710eb1da1a181ef366e8ff (diff)
egl: Return NULL if we fail to load a default driver
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/egldriver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index 566554d51d..2f42e64fbe 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;
}