- 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-e03cc46cb475
master
nadro 2016-01-03 18:39:39 +00:00
parent 023dd4b641
commit 27bf238aa5
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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