summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorJonathan Hamilton <jonathan.hamilton@imgtec.com>2013-07-17 09:41:42 -0700
committerJonathan Hamilton <jonathan.hamilton@imgtec.com>2013-07-17 09:52:41 -0700
commit77a9b4a6bd21188e2744ae9dcd8092c6837bff7c (patch)
tree4758b365f4a8badca17aa5260845afab674a8c21 /opengl
parent674816078588d0951c3c9bdaf26ecc9e9b3f2e0a (diff)
downloadframeworks_native-77a9b4a6bd21188e2744ae9dcd8092c6837bff7c.zip
frameworks_native-77a9b4a6bd21188e2744ae9dcd8092c6837bff7c.tar.gz
frameworks_native-77a9b4a6bd21188e2744ae9dcd8092c6837bff7c.tar.bz2
EGL: Fix error for eglCreateWindowSurface
The EGL 1.4 spec section 3.5.1 states that EGL_BAD_ALLOC should be set if the supplied window already has an associated EGLSurface, not EGL_BAD_NATIVE_WINDOW as is currently set. Change-Id: If1598617f4e31904f2045560ae1cdf49d8a697dc
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/eglApi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index c25612d..d1f7c57 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -295,7 +295,7 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config,
if (native_window_api_connect(window, NATIVE_WINDOW_API_EGL) != OK) {
ALOGE("EGLNativeWindowType %p already connected to another API",
window);
- return setError(EGL_BAD_NATIVE_WINDOW, EGL_NO_SURFACE);
+ return setError(EGL_BAD_ALLOC, EGL_NO_SURFACE);
}
// set the native window's buffers format to match this config