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

This commit is contained in:
Kristian Høgsberg 2010-05-26 21:33:18 -04:00
parent 7d7bdee50d
commit 6e9da8ab60
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ _eglLoadDefaultDriver(EGLDisplay dpy, EGLint *major, EGLint *minor)
_eglUnlockMutex(_eglGlobal.Mutex);
return drv;
return _eglGlobal.NumDrivers > 0 ? drv : NULL;
}