From 551dc26ebd7db09a6ae8604a8612c00d2ebab403 Mon Sep 17 00:00:00 2001 From: Ari Hirvonen Date: Fri, 1 Oct 2010 19:00:54 +0300 Subject: [PATCH] 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 --- opengl/libagl/egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index 460b74ff3..239dc05c0 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -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; } // ----------------------------------------------------------------------------