Commit 7f848f97 authored by Eric Engestrom's avatar Eric Engestrom Committed by Eric Engestrom

egl: move eglGetConfigAttrib() fallback to eglapi.c

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
parent 1b76cca4
......@@ -772,7 +772,11 @@ eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,
_EGL_FUNC_START(disp, EGL_OBJECT_DISPLAY_KHR, NULL, EGL_FALSE);
_EGL_CHECK_CONFIG(disp, conf, EGL_FALSE, drv);
ret = drv->API.GetConfigAttrib(drv, disp, conf, attribute, value);
if (drv->API.GetConfigAttrib)
ret = drv->API.GetConfigAttrib(drv, disp, conf, attribute, value);
else
ret = _eglGetConfigAttrib(drv, disp, conf, attribute, value);
RETURN_EGL_EVAL(disp, ret);
}
......
......@@ -42,8 +42,6 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
drv->API.GetConfigAttrib = _eglGetConfigAttrib;
drv->API.QueryContext = _eglQueryContext;
drv->API.QuerySurface = _eglQuerySurface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment