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:
parent
6997079565
commit
551dc26ebd
@ -1969,7 +1969,7 @@ EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval)
|
|||||||
if (egl_display_t::is_valid(dpy) == EGL_FALSE)
|
if (egl_display_t::is_valid(dpy) == EGL_FALSE)
|
||||||
return setError(EGL_BAD_DISPLAY, EGL_FALSE);
|
return setError(EGL_BAD_DISPLAY, EGL_FALSE);
|
||||||
// TODO: eglSwapInterval()
|
// TODO: eglSwapInterval()
|
||||||
return setError(EGL_BAD_PARAMETER, EGL_FALSE);
|
return EGL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user