As the spec says, the function is a no-op when the surface is not a window one.
That spec implies that EGL_TRUE should be returned in that case, yet the ARM driver seems to return EGL_FALSE + EGL_BAD_SURFACE.
The Nvidia driver returns EGL_TRUE. We follow that behaviour until a decision is made.
Cc: samiuddi Cc: Erik Faye-Lund Cc: Tomasz Figa Cc:
64b4ccde0c egl: make eglSwapInterval a no-op for !window surfaces
src/egl/main/eglapi.c | 3 +++
1 file changed, 3 insertions(+)