diff options
author | Michael I. Gold <gold@nvidia.com> | 2010-09-15 15:46:24 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-09-15 17:15:31 -0700 |
commit | 7f198b6bff54af3c8e8ac32b83ffc6488e773ac1 (patch) | |
tree | 9e2dc7442d55a963cf6502c889853fad11eb73e0 /services/surfaceflinger | |
parent | c29530252ae65486549ea1aaf530450b5ec05d69 (diff) | |
download | frameworks_native-7f198b6bff54af3c8e8ac32b83ffc6488e773ac1.zip frameworks_native-7f198b6bff54af3c8e8ac32b83ffc6488e773ac1.tar.gz frameworks_native-7f198b6bff54af3c8e8ac32b83ffc6488e773ac1.tar.bz2 |
surfaceflinger / GL extensions cleanup
Add correct enumerants for OES_EGL_image_external to glext.h.
SurfaceFlinger now checks for the correct extension name.
Change-Id: I2ba2728a01fa2260bd086d2df4316c68f694a9b1
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r-- | services/surfaceflinger/GLExtensions.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/LayerBlur.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/LayerDim.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/TextureManager.cpp | 8 |
5 files changed, 8 insertions, 8 deletions
diff --git a/services/surfaceflinger/GLExtensions.cpp b/services/surfaceflinger/GLExtensions.cpp index 7f4f9fc..850866a 100644 --- a/services/surfaceflinger/GLExtensions.cpp +++ b/services/surfaceflinger/GLExtensions.cpp @@ -86,7 +86,7 @@ void GLExtensions::initWithGLStrings( mHaveNpot = true; } - if (hasExtension("GL_OES_texture_external")) { + if (hasExtension("GL_OES_EGL_image_external")) { mHaveTextureExternal = true; } else if (strstr(mRenderer.string(), "Adreno")) { // hack for Adreno 200 diff --git a/services/surfaceflinger/LayerBlur.cpp b/services/surfaceflinger/LayerBlur.cpp index 2ee21b9..4cfcfe3 100644 --- a/services/surfaceflinger/LayerBlur.cpp +++ b/services/surfaceflinger/LayerBlur.cpp @@ -146,7 +146,7 @@ void LayerBlur::onDraw(const Region& clip) const Region::const_iterator it = clip.begin(); Region::const_iterator const end = clip.end(); if (it != end) { -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) if (GLExtensions::getInstance().haveTextureExternal()) { glDisable(GL_TEXTURE_EXTERNAL_OES); } diff --git a/services/surfaceflinger/LayerDim.cpp b/services/surfaceflinger/LayerDim.cpp index a1f339e..80cc52c 100644 --- a/services/surfaceflinger/LayerDim.cpp +++ b/services/surfaceflinger/LayerDim.cpp @@ -71,7 +71,7 @@ void LayerDim::onDraw(const Region& clip) const glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glColor4f(0, 0, 0, alpha); -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) if (GLExtensions::getInstance().haveTextureExternal()) { glDisable(GL_TEXTURE_EXTERNAL_OES); } diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index f199ca9..dc241d4 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -917,7 +917,7 @@ void SurfaceFlinger::drawWormhole() const glVertexPointer(2, GL_SHORT, 0, vertices); glTexCoordPointer(2, GL_SHORT, 0, tcoords); glEnableClientState(GL_TEXTURE_COORD_ARRAY); -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) if (GLExtensions::getInstance().haveTextureExternal()) { glDisable(GL_TEXTURE_EXTERNAL_OES); } diff --git a/services/surfaceflinger/TextureManager.cpp b/services/surfaceflinger/TextureManager.cpp index 76f6159..c9a15f5 100644 --- a/services/surfaceflinger/TextureManager.cpp +++ b/services/surfaceflinger/TextureManager.cpp @@ -43,7 +43,7 @@ TextureManager::TextureManager() } GLenum TextureManager::getTextureTarget(const Image* image) { -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) switch (image->target) { case Texture::TEXTURE_EXTERNAL: return GL_TEXTURE_EXTERNAL_OES; @@ -85,7 +85,7 @@ status_t TextureManager::initTexture(Image* pImage, int32_t format) pImage->height = 0; GLenum target = GL_TEXTURE_2D; -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) if (GLExtensions::getInstance().haveTextureExternal()) { if (format && isYuvFormat(format)) { target = GL_TEXTURE_EXTERNAL_OES; @@ -306,7 +306,7 @@ void TextureManager::activateTexture(const Texture& texture, bool filter) if (target == GL_TEXTURE_2D) { glBindTexture(GL_TEXTURE_2D, texture.name); glEnable(GL_TEXTURE_2D); -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) if (GLExtensions::getInstance().haveTextureExternal()) { glDisable(GL_TEXTURE_EXTERNAL_OES); } @@ -329,7 +329,7 @@ void TextureManager::activateTexture(const Texture& texture, bool filter) void TextureManager::deactivateTextures() { glDisable(GL_TEXTURE_2D); -#if defined(GL_OES_texture_external) +#if defined(GL_OES_EGL_image_external) if (GLExtensions::getInstance().haveTextureExternal()) { glDisable(GL_TEXTURE_EXTERNAL_OES); } |