summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-28 17:39:07 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-29 18:33:53 +0800
commit607a4393e7489ed1da9808f117ecde6cb637accc (patch)
tree44c56f1f367de473425ec6a392d3fee0d0b4bffb
parent74174dd5d650ee82250724ff0d96d44c7647ff38 (diff)
egl: Preload a driver if eglGetProcAddress is called early.
-rw-r--r--src/egl/main/eglapi.c4
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);