diff options
author | Eric Engestrom <[email protected]> | 2019-06-22 22:32:50 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-06-25 06:36:54 +0000 |
commit | 26d5ca44ba13b940afc3ddc0190f9936d500a1fc (patch) | |
tree | eba68551e83dfc267daebf8921e67a3788204cb3 /src | |
parent | 9dc00c84332cec660803f0e5dc2b52c4a8a26ae0 (diff) |
egl: move eglSwapInterval() 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.c | 11 | ||||
-rw-r--r-- | src/egl/main/eglfallbacks.c | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index b3059465d20..60f59bb165a 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1296,10 +1296,15 @@ eglSwapInterval(EGLDisplay dpy, EGLint interval) surf->Config->MinSwapInterval, surf->Config->MaxSwapInterval); - if (surf->SwapInterval != interval) - ret = drv->API.SwapInterval(drv, disp, surf, interval); - else + if (surf->SwapInterval != interval) { + if (drv->API.SwapInterval) + ret = drv->API.SwapInterval(drv, disp, surf, interval); + else + ret = _eglSwapInterval(drv, disp, surf, interval); + } + else { ret = EGL_TRUE; + } if (ret) surf->SwapInterval = interval; diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index 05d4515a61d..891c6fc3b71 100644 --- a/src/egl/main/eglfallbacks.c +++ b/src/egl/main/eglfallbacks.c @@ -42,7 +42,5 @@ void _eglInitDriverFallbacks(_EGLDriver *drv) { - drv->API.SwapInterval = _eglSwapInterval; - drv->API.GetSyncAttrib = _eglGetSyncAttrib; } |