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