summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-22 22:31:53 +0100
committerEric Engestrom <[email protected]>2019-06-25 06:36:54 +0000
commit58be9d50a77c2f5d5d680b841ca1f0a16e06499b (patch)
tree4d2bbefc6b67841abb1d4c5e3522808f18dd5926 /src
parentb792b3ebd70ccebb95207ec15662850a24c44c58 (diff)
egl: move eglQuerySurface() 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.c6
-rw-r--r--src/egl/main/eglfallbacks.c1
2 files changed, 5 insertions, 2 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 32951c96c0f..4585540437b 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -1208,7 +1208,11 @@ eglQuerySurface(EGLDisplay dpy, EGLSurface surface,
_EGL_FUNC_START(disp, EGL_OBJECT_SURFACE_KHR, surf, EGL_FALSE);
_EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv);
- ret = drv->API.QuerySurface(drv, disp, surf, attribute, value);
+
+ if (drv->API.QuerySurface)
+ ret = drv->API.QuerySurface(drv, disp, surf, attribute, value);
+ else
+ ret = _eglQuerySurface(drv, disp, surf, attribute, value);
RETURN_EGL_EVAL(disp, ret);
}
diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c
index 135c9c1229c..8829a4e80d7 100644
--- a/src/egl/main/eglfallbacks.c
+++ b/src/egl/main/eglfallbacks.c
@@ -42,7 +42,6 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
- drv->API.QuerySurface = _eglQuerySurface;
drv->API.SurfaceAttrib = _eglSurfaceAttrib;
drv->API.SwapInterval = _eglSwapInterval;