From b883d7f567c20e9abbb5ebcf737fa106c80d9b14 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 22 Jun 2019 22:29:46 +0100 Subject: [PATCH] egl: move eglGetConfigs() fallback to eglapi.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Reviewed-by: Tapani Pälli --- src/egl/main/eglapi.c | 5 ++++- src/egl/main/eglfallbacks.c | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 93c1da9..8f3e741 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -725,7 +725,10 @@ eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, if (!num_config) RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE); - ret = drv->API.GetConfigs(drv, disp, configs, config_size, num_config); + if (drv->API.GetConfigs) + ret = drv->API.GetConfigs(drv, disp, configs, config_size, num_config); + else + ret = _eglGetConfigs(drv, disp, configs, config_size, num_config); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index 08ffab3..696a08c 100644 --- a/src/egl/main/eglfallbacks.c +++ b/src/egl/main/eglfallbacks.c @@ -42,7 +42,6 @@ void _eglInitDriverFallbacks(_EGLDriver *drv) { - drv->API.GetConfigs = _eglGetConfigs; drv->API.ChooseConfig = _eglChooseConfig; drv->API.GetConfigAttrib = _eglGetConfigAttrib; -- 2.7.4