Commit 1b76cca4 authored by Eric Engestrom's avatar Eric Engestrom Committed by Eric Engestrom

egl: move eglChooseConfig() 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 b883d7f5
......@@ -749,8 +749,12 @@ eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs,
if (!num_config)
RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE);
ret = drv->API.ChooseConfig(drv, disp, attrib_list, configs,
config_size, num_config);
if (drv->API.ChooseConfig)
ret = drv->API.ChooseConfig(drv, disp, attrib_list, configs,
config_size, num_config);
else
ret = _eglChooseConfig(drv, disp, attrib_list, configs,
config_size, num_config);
RETURN_EGL_EVAL(disp, ret);
}
......
......@@ -42,7 +42,6 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
drv->API.ChooseConfig = _eglChooseConfig;
drv->API.GetConfigAttrib = _eglGetConfigAttrib;
drv->API.QueryContext = _eglQueryContext;
......
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