- Fixed texture rendering in both OpenGL ES1 and ES2 drivers on iOS.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@5234 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
023dd4b641
commit
27bf238aa5
|
@ -2832,6 +2832,11 @@ COGLES2Driver::~COGLES2Driver()
|
|||
os::Printer::log("Unsupported texture format", ELL_ERROR);
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef _IRR_IOS_PLATFORM_
|
||||
if (internalFormat == GL_BGRA)
|
||||
internalFormat = GL_RGBA;
|
||||
#endif
|
||||
}
|
||||
|
||||
const SMaterial& COGLES2Driver::getCurrentMaterial() const
|
||||
|
|
|
@ -3207,6 +3207,11 @@ void COGLES1Driver::getColorFormatParameters(ECOLOR_FORMAT format, GLint& intern
|
|||
os::Printer::log("Unsupported texture format", ELL_ERROR);
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef _IRR_IOS_PLATFORM_
|
||||
if (internalFormat == GL_BGRA)
|
||||
internalFormat = GL_RGBA;
|
||||
#endif
|
||||
}
|
||||
|
||||
COGLES1CacheHandler* COGLES1Driver::getCacheHandler() const
|
||||
|
|
Loading…
Reference in New Issue