egl: move eglQueryContext() fallback to eglapi.c

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
Eric Engestrom
2019-06-22 22:31:26 +01:00
committed by Eric Engestrom
parent 7f848f9713
commit b792b3ebd7
2 changed files with 5 additions and 3 deletions
+5 -1
View File
@@ -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);
}
-2
View File
@@ -42,8 +42,6 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
drv->API.QueryContext = _eglQueryContext;
drv->API.QuerySurface = _eglQuerySurface;
drv->API.SurfaceAttrib = _eglSurfaceAttrib;