summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-22 22:29:46 +0100
committerEric Engestrom <[email protected]>2019-06-25 06:36:53 +0000
commitb883d7f567c20e9abbb5ebcf737fa106c80d9b14 (patch)
tree02054ff921ad696c46a8837b79bc3aa6f11c3548 /src
parent927fb50727e6e6652c0e4ce300e098843ad12013 (diff)
egl: move eglGetConfigs() fallback to eglapi.c
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/egl/main/eglapi.c5
-rw-r--r--src/egl/main/eglfallbacks.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 93c1da9aac0..8f3e741ebc4 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 08ffab3072c..696a08c56db 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;