diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-28 17:39:07 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-29 18:33:53 +0800 |
commit | 607a4393e7489ed1da9808f117ecde6cb637accc (patch) | |
tree | 44c56f1f367de473425ec6a392d3fee0d0b4bffb | |
parent | 74174dd5d650ee82250724ff0d96d44c7647ff38 (diff) |
egl: Preload a driver if eglGetProcAddress is called early.
-rw-r--r-- | src/egl/main/eglapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index d39266fda3..6060e88466 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -658,6 +658,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); |