Commit 9dc00c84 authored by Eric Engestrom's avatar Eric Engestrom Committed by Eric Engestrom

egl: move eglSurfaceAttrib() fallback to eglapi.c

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
parent 58be9d50
......@@ -1228,7 +1228,11 @@ eglSurfaceAttrib(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.SurfaceAttrib(drv, disp, surf, attribute, value);
if (drv->API.SurfaceAttrib)
ret = drv->API.SurfaceAttrib(drv, disp, surf, attribute, value);
else
ret = _eglSurfaceAttrib(drv, disp, surf, attribute, value);
RETURN_EGL_EVAL(disp, ret);
}
......
......@@ -42,8 +42,6 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
drv->API.SurfaceAttrib = _eglSurfaceAttrib;
drv->API.SwapInterval = _eglSwapInterval;
drv->API.GetSyncAttrib = _eglGetSyncAttrib;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment