diff options
author | Eric Engestrom <[email protected]> | 2019-06-22 22:31:00 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-06-25 06:36:54 +0000 |
commit | 7f848f9713a954f3caab279c0ff5ad5f81a2d066 (patch) | |
tree | 715b760663925e0e5dfaba417c63503e411af011 /src/egl/main | |
parent | 1b76cca40f3a8f904b02977eaf3e8f2a0d3140d4 (diff) |
egl: move eglGetConfigAttrib() fallback to eglapi.c
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/eglapi.c | 6 | ||||
-rw-r--r-- | src/egl/main/eglfallbacks.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 394207b9151..7309eb08d1c 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -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); } diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index f2c8bc43bdd..1e679625934 100644 --- a/src/egl/main/eglfallbacks.c +++ b/src/egl/main/eglfallbacks.c @@ -42,8 +42,6 @@ void _eglInitDriverFallbacks(_EGLDriver *drv) { - drv->API.GetConfigAttrib = _eglGetConfigAttrib; - drv->API.QueryContext = _eglQueryContext; drv->API.QuerySurface = _eglQuerySurface; |