aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-22 22:31:26 +0100
committerEric Engestrom <[email protected]>2019-06-25 06:36:54 +0000
commitb792b3ebd70ccebb95207ec15662850a24c44c58 (patch)
treee41dc97a85a06c0e95723f0e2464650432a00998 /src/egl
parent7f848f9713a954f3caab279c0ff5ad5f81a2d066 (diff)
egl: move eglQueryContext() fallback to eglapi.c
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglapi.c6
-rw-r--r--src/egl/main/eglfallbacks.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 7309eb08d1c..32951c96c0f 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -900,7 +900,11 @@ eglQueryContext(EGLDisplay dpy, EGLContext ctx,
_EGL_FUNC_START(disp, EGL_OBJECT_CONTEXT_KHR, context, EGL_FALSE);
_EGL_CHECK_CONTEXT(disp, context, EGL_FALSE, drv);
- ret = drv->API.QueryContext(drv, disp, context, attribute, value);
+
+ if (drv->API.QueryContext)
+ ret = drv->API.QueryContext(drv, disp, context, attribute, value);
+ else
+ ret = _eglQueryContext(drv, disp, context, attribute, value);
RETURN_EGL_EVAL(disp, ret);
}
diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c
index 1e679625934..135c9c1229c 100644
--- a/src/egl/main/eglfallbacks.c
+++ b/src/egl/main/eglfallbacks.c
@@ -42,8 +42,6 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
- drv->API.QueryContext = _eglQueryContext;
-
drv->API.QuerySurface = _eglQuerySurface;
drv->API.SurfaceAttrib = _eglSurfaceAttrib;