summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2009-11-18 14:56:14 -0800
committerBrint E. Kriebel <github@bekit.net>2010-11-14 21:33:37 -0700
commit53369231ca8e5d44a58d03617e82436c2c45538c (patch)
treec72420f51434f57b9efc02c94a246aa17fb115d1
parent4e2647391f8da78ebc9e5f2c7b65269f2f04e453 (diff)
downloadframeworks_base-53369231ca8e5d44a58d03617e82436c2c45538c.zip
frameworks_base-53369231ca8e5d44a58d03617e82436c2c45538c.tar.gz
frameworks_base-53369231ca8e5d44a58d03617e82436c2c45538c.tar.bz2
egl: return success for eglSwapInterval
default shouldn't return an error, since this would preclude hardware implementations which implement this function correctly
-rw-r--r--opengl/libagl/egl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index 79c5ecb..e9f60f5 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -2003,7 +2003,11 @@ 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);
+ /* TODO: [ahatala 2009-10-09] changing this to default to succeeding,
+ as this will cause eglSwapInterval to fail even if the hw implementation
+ correctly supports it. */
+ //return setError(EGL_BAD_PARAMETER, EGL_FALSE);
+ return EGL_TRUE;
}
// ----------------------------------------------------------------------------