egl: Preload a driver if eglGetProcAddress is called early.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
9061d733d3
commit
e787ffcd02
|
@ -618,6 +618,10 @@ void (* EGLAPIENTRY eglGetProcAddress(const char *procname))()
|
|||
}
|
||||
}
|
||||
|
||||
/* preload a driver if there isn't one */
|
||||
if (!_eglGlobal.NumDrivers)
|
||||
_eglPreloadDriver(NULL);
|
||||
|
||||
/* now loop over drivers to query their procs */
|
||||
for (i = 0; i < _eglGlobal.NumDrivers; i++) {
|
||||
_EGLProc p = _eglGlobal.Drivers[i]->API.GetProcAddress(procname);
|
||||
|
|
Loading…
Reference in New Issue