nadlabak/android_packages_apps_Camera — comment on commit d3613d6cfc27a2ed150b5845fc672624484c4f12
File: jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp line 181
By tpruvot:

The texture object uses the GL_TEXTURE_EXTERNAL_OES texture target, which is defined by the
http://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external.txt
GL_OES_EGL_image_external OpenGL ES extension. This limits how the texture may be used.
Each time the texture is bound it must be bound to the GL_TEXTURE_EXTERNAL_OES target rather than
the GL_TEXTURE_2D target. Additionally, any OpenGL ES 2.0 shader that samples from the texture
must declare its use of this extension using, for example, an "#extension GL_OES_EGL_image_external : require" directive.
Such shaders must also access the texture using the samplerExternalOES GLSL sampler type.