egl: Return NULL if we fail to load a default driver
This commit is contained in:
parent
7d7bdee50d
commit
6e9da8ab60
|
@ -571,7 +571,7 @@ _eglLoadDefaultDriver(EGLDisplay dpy, EGLint *major, EGLint *minor)
|
||||||
|
|
||||||
_eglUnlockMutex(_eglGlobal.Mutex);
|
_eglUnlockMutex(_eglGlobal.Mutex);
|
||||||
|
|
||||||
return drv;
|
return _eglGlobal.NumDrivers > 0 ? drv : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue