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:
committed by
Eric Engestrom
parent
7f848f9713
commit
b792b3ebd7
@@ -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);
|
||||
}
|
||||
|
||||
@@ -42,8 +42,6 @@
|
||||
void
|
||||
_eglInitDriverFallbacks(_EGLDriver *drv)
|
||||
{
|
||||
drv->API.QueryContext = _eglQueryContext;
|
||||
|
||||
drv->API.QuerySurface = _eglQuerySurface;
|
||||
drv->API.SurfaceAttrib = _eglSurfaceAttrib;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user