egl: make eglSwapInterval a no-op for !window surfaces

Graphics / Mesa 3D Graphics Library / Mesa - Emil Velikov [collabora.com] - 3 October 2018 12:38 EDT

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.

https://gitlab.khronos.org/egl/API/merge_requests/17

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(+)

Upstream: cgit.freedesktop.org


  • Share