summaryrefslogtreecommitdiffstats
path: root/opengl/libagl/egl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/libagl/egl.cpp')
-rw-r--r--opengl/libagl/egl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index e9f60f5..5a9d437 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -2003,11 +2003,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()
- /* 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;
+ return setError(EGL_BAD_PARAMETER, EGL_FALSE);
}
// ----------------------------------------------------------------------------
@@ -2105,6 +2101,8 @@ EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target,
case HAL_PIXEL_FORMAT_BGRA_8888:
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
+ case HAL_PIXEL_FORMAT_YCbCr_420_SP:
+ case HAL_PIXEL_FORMAT_YCrCb_420_SP:
break;
default:
return setError(EGL_BAD_PARAMETER, EGL_NO_IMAGE_KHR);