summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/egl/main/egldriver.c2
-rw-r--r--src/egl/main/eglfallbacks.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index e294c8c5f7d..4dc46b35e95 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -109,7 +109,7 @@ _eglMatchDriver(_EGLDisplay *disp)
__eglMustCastToProperFunctionPointerType
_eglGetDriverProc(const char *procname)
{
- if (_eglGetDriver())
+ if (_eglGetDriver() && _eglDriver->API.GetProcAddress)
return _eglDriver->API.GetProcAddress(_eglDriver, procname);
return NULL;
diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c
index bf667af1124..336ca7aee2e 100644
--- a/src/egl/main/eglfallbacks.c
+++ b/src/egl/main/eglfallbacks.c
@@ -76,7 +76,6 @@ _eglInitDriverFallbacks(_EGLDriver *drv)
drv->API.WaitClient = (void*) _eglReturnFalse;
drv->API.WaitNative = (void*) _eglReturnFalse;
- drv->API.GetProcAddress = (void*) _eglReturnFalse;
drv->API.GetSyncAttrib = _eglGetSyncAttrib;
}