summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-07-31 18:03:16 +0100
committerEric Engestrom <[email protected]>2017-08-01 17:36:57 +0100
commit991ec1b81a76de24fd013d2fd6b803408c97ab64 (patch)
tree1a123a23376f87c165417d77e998f44c39c011bd /src/egl/main
parent97eadb07e7deeb62175da972bfa7a1645798d0ba (diff)
egl: make platform's SwapInterval() optional
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/eglapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index c5e3955c48c..65fb117f087 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -1205,7 +1205,7 @@ eglSwapInterval(EGLDisplay dpy, EGLint interval)
surf->Config->MinSwapInterval,
surf->Config->MaxSwapInterval);
- if (surf->SwapInterval != interval)
+ if (surf->SwapInterval != interval && drv->API.SwapInterval)
ret = drv->API.SwapInterval(drv, disp, surf, interval);
else
ret = EGL_TRUE;