Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
_EGL_CHECK_OBJECT(disp, Sync, s, ret)
+extern const _EGLDriver _eglDriver;
+
+
struct _egl_entrypoint {
const char *name;
_EGLProc function;
ret = entrypoint->function;
}
- if (!ret)
- ret = _eglGetDriverProc(procname);
+ if (!ret && _eglDriver.GetProcAddress)
+ ret = _eglDriver.GetProcAddress(procname);
RETURN_EGL_SUCCESS(NULL, ret);
}
disp->Initialized = EGL_TRUE;
return true;
}
-
-__eglMustCastToProperFunctionPointerType
-_eglGetDriverProc(const char *procname)
-{
- if (_eglDriver.GetProcAddress)
- return _eglDriver.GetProcAddress(procname);
-
- return NULL;
-}
_eglInitializeDisplay(_EGLDisplay *disp);
-extern __eglMustCastToProperFunctionPointerType
-_eglGetDriverProc(const char *procname);
-
-
#ifdef __cplusplus
}
#endif