From ee765a2c9c984a0c822252d3dcdf1d5ab9c51da3 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 16 Jun 2009 08:16:22 +0000 Subject: [PATCH] OpenGL ES does support GL_ALPHA. --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index d2e4ba591e..bae8e8e9f4 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -5615,9 +5615,9 @@ get_external_image_format(Texture *tex) const { return GL_GREEN; case Texture::F_blue: return GL_BLUE; +#endif case Texture::F_alpha: return GL_ALPHA; -#endif case Texture::F_rgb: case Texture::F_rgb5: case Texture::F_rgb8: @@ -8847,9 +8847,11 @@ do_extract_texture_data(CLP(TextureContext) *gtc) { case GL_BLUE: format = Texture::F_blue; break; +#endif // OPENGLES case GL_ALPHA: format = Texture::F_alpha; break; +#ifndef OPENGLES case GL_LUMINANCE: case 1: format = Texture::F_luminance;