summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAri Hirvonen <ahirvonen@nvidia.com>2010-10-01 19:00:54 +0300
committerMathias Agopian <mathias@google.com>2010-10-06 16:44:37 -0700
commit1d83631af509545da575f01d9c1a464db488e11f (patch)
tree6a8ac819e6432117e9676e7bc12eca39630ba667
parent2fe9a8f6f6a5264597a9dbed2fb2e02d84853189 (diff)
downloadframeworks_base-1d83631af509545da575f01d9c1a464db488e11f.zip
frameworks_base-1d83631af509545da575f01d9c1a464db488e11f.tar.gz
frameworks_base-1d83631af509545da575f01d9c1a464db488e11f.tar.bz2
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
-rw-r--r--opengl/libagl/egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index 460b74f..239dc05 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;
}
// ----------------------------------------------------------------------------