diff options
author | Mathias Agopian <mathias@google.com> | 2010-06-14 21:20:00 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-06-15 17:31:17 -0700 |
commit | 0a91775c4df380d6a5b7f3ccad5127388ac01306 (patch) | |
tree | bcdc72c8959bc9f0c962deb0574e17ac6aca8862 /libs/surfaceflinger/LayerDim.cpp | |
parent | f1be483e8e11a56b8ee93f8e917bae7001ddfba1 (diff) | |
download | frameworks_native-0a91775c4df380d6a5b7f3ccad5127388ac01306.zip frameworks_native-0a91775c4df380d6a5b7f3ccad5127388ac01306.tar.gz frameworks_native-0a91775c4df380d6a5b7f3ccad5127388ac01306.tar.bz2 |
Added support for the GL_TEXTURE_EXTERNAL target
This will allow us to support YUV surfaces.
Change-Id: I2d4da75f1006a5285bdc552695d4caeecccf2183
Diffstat (limited to 'libs/surfaceflinger/LayerDim.cpp')
-rw-r--r-- | libs/surfaceflinger/LayerDim.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerDim.cpp b/libs/surfaceflinger/LayerDim.cpp index d528d2f..906a583 100644 --- a/libs/surfaceflinger/LayerDim.cpp +++ b/libs/surfaceflinger/LayerDim.cpp @@ -119,6 +119,9 @@ void LayerDim::onDraw(const Region& clip) const glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glColor4x(0, 0, 0, alpha); +#if defined(GL_OES_texture_external) + glDisable(GL_TEXTURE_EXTERNAL_OES); +#endif #if defined(DIM_WITH_TEXTURE) && defined(EGL_ANDROID_image_native_buffer) if (sUseTexture) { glBindTexture(GL_TEXTURE_2D, sTexId); |