OpenGL ES does support GL_ALPHA.

This commit is contained in:
rdb 2009-06-16 08:16:22 +00:00
parent 7d2a154bf5
commit ee765a2c9c

View File

@ -5615,9 +5615,9 @@ get_external_image_format(Texture *tex) const {
return GL_GREEN; return GL_GREEN;
case Texture::F_blue: case Texture::F_blue:
return GL_BLUE; return GL_BLUE;
#endif
case Texture::F_alpha: case Texture::F_alpha:
return GL_ALPHA; return GL_ALPHA;
#endif
case Texture::F_rgb: case Texture::F_rgb:
case Texture::F_rgb5: case Texture::F_rgb5:
case Texture::F_rgb8: case Texture::F_rgb8:
@ -8847,9 +8847,11 @@ do_extract_texture_data(CLP(TextureContext) *gtc) {
case GL_BLUE: case GL_BLUE:
format = Texture::F_blue; format = Texture::F_blue;
break; break;
#endif // OPENGLES
case GL_ALPHA: case GL_ALPHA:
format = Texture::F_alpha; format = Texture::F_alpha;
break; break;
#ifndef OPENGLES
case GL_LUMINANCE: case GL_LUMINANCE:
case 1: case 1:
format = Texture::F_luminance; format = Texture::F_luminance;