Merge "EGL: Fix error for eglCreateWindowSurface"

This commit is contained in:
Jesse Hall 2013-07-17 21:06:54 +00:00 committed by Gerrit Code Review
commit ae9610220b

View File

@ -295,7 +295,7 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config,
if (native_window_api_connect(window, NATIVE_WINDOW_API_EGL) != OK) { if (native_window_api_connect(window, NATIVE_WINDOW_API_EGL) != OK) {
ALOGE("EGLNativeWindowType %p already connected to another API", ALOGE("EGLNativeWindowType %p already connected to another API",
window); 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 // set the native window's buffers format to match this config