libagl: eglSwapInterval fix

SW egl returned always EGL_FALSE even when the display was valid.
This made calls to eglSwapInterval to fail on HW since the wrapper
fails if either SW or HW egl fails.

Letting SW eglSwapInterval to return true when display is valid is
ok since spec says that interval parameter is silently clamped.

Change-Id: Ib4aa1dbfccf510a0f36621796e79a4d46852ee6a
This commit is contained in:
Ari Hirvonen 2010-10-01 19:00:54 +03:00 committed by Mathias Agopian
parent 6997079565
commit 551dc26ebd

View File

@ -1969,7 +1969,7 @@ EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval)
if (egl_display_t::is_valid(dpy) == EGL_FALSE)
return setError(EGL_BAD_DISPLAY, EGL_FALSE);
// TODO: eglSwapInterval()
return setError(EGL_BAD_PARAMETER, EGL_FALSE);
return EGL_TRUE;
}
// ----------------------------------------------------------------------------