Add check for APPLE_BGRA8888 extension

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@4523 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2013-05-13 22:55:10 +00:00
parent 148fe37436
commit 60aa1bb56e
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,9 @@ void COGLES2Texture::uploadTexture(bool newTexture, void* mipmapData, u32 level)
break;
case ECF_A8R8G8B8:
PixelType=GL_UNSIGNED_BYTE;
if (!Driver->queryOpenGLFeature(COGLES2ExtensionHandler::IRR_IMG_texture_format_BGRA8888) && !Driver->queryOpenGLFeature(COGLES2ExtensionHandler::IRR_EXT_texture_format_BGRA8888))
if (!Driver->queryOpenGLFeature(COGLES2ExtensionHandler::IRR_IMG_texture_format_BGRA8888) &&
!Driver->queryOpenGLFeature(COGLES2ExtensionHandler::IRR_EXT_texture_format_BGRA8888) &&
!Driver->queryOpenGLFeature(COGLES2ExtensionHandler::IRR_APPLE_texture_format_BGRA8888))
{
convert=CColorConverter::convert_A8R8G8B8toA8B8G8R8;
InternalFormat=GL_RGBA;