_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);
}
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
- drv->API.QuerySurface = _eglQuerySurface;
drv->API.SurfaceAttrib = _eglSurfaceAttrib;
drv->API.SwapInterval = _eglSwapInterval;