summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TextureManager.cpp
diff options
context:
space:
mode:
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
commit7f198b6bff54af3c8e8ac32b83ffc6488e773ac1 (patch)
tree9e2dc7442d55a963cf6502c889853fad11eb73e0 /services/surfaceflinger/TextureManager.cpp
parentc29530252ae65486549ea1aaf530450b5ec05d69 (diff)
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/TextureManager.cpp')
-rw-r--r--services/surfaceflinger/TextureManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/surfaceflinger/TextureManager.cpp b/services/surfaceflinger/TextureManager.cpp
index 76f61598b1..c9a15f56ab 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);
}