summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-01-10 16:41:38 +0000
committerEric Engestrom <[email protected]>2019-06-22 15:17:42 +0000
commit82487ede625bb621c63a088b4decfdefadbeb793 (patch)
treef8055940c3e206e62e9361f252d20acd914e69a6 /src/egl
parent30ecd869471722db6cb693aaaa75120a4dfe7837 (diff)
egl: remove unnecessary eglGetProcAddress() fallback
No need to add a function that returns `false` only to be cast into a pointer, we can just use the existing `return NULL` :) Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl')
-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;
}