diff options
author | Jamie Gennis <jgennis@google.com> | 2011-04-25 16:41:11 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-04-25 16:41:11 -0700 |
commit | 1b528fb9d818044973abf656c9d2d3c1192bcfdc (patch) | |
tree | 0cb2b8968573b665ac82927b4a040c3d5a4485e5 /opengl | |
parent | fc850124b35abd00a31e9bcf57e14e0fa74f4cd7 (diff) | |
download | frameworks_native-1b528fb9d818044973abf656c9d2d3c1192bcfdc.zip frameworks_native-1b528fb9d818044973abf656c9d2d3c1192bcfdc.tar.gz frameworks_native-1b528fb9d818044973abf656c9d2d3c1192bcfdc.tar.bz2 |
EGL: Allow creating a SurfaceTexture EGLSurface.
This change removes the check that disallowed the creation of an
EGLSurface that would send frames to a SurfaceTexture.
Change-Id: I44c6d5df503cc676a88144d72d39b414692ce4c9
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/libs/EGL/egl.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 9cf7223..aabba28 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -1132,16 +1132,6 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config, EGLConfig iConfig = dp->configs[intptr_t(config)].config; EGLint format; - // for now fail if the window is not a Surface. - int type = -1; - ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); - if ((anw->query(window, NATIVE_WINDOW_CONCRETE_TYPE, &type) != 0) || - (type == NATIVE_WINDOW_SURFACE_TEXTURE_CLIENT)) { - LOGE("native window is a SurfaceTextureClient (currently " - "unsupported)"); - return setError(EGL_BAD_NATIVE_WINDOW, EGL_NO_SURFACE); - } - // set the native window's buffers format to match this config if (cnx->egl.eglGetConfigAttrib(iDpy, iConfig, EGL_NATIVE_VISUAL_ID, &format)) { |