COGLESTexture now using enums from ES1 instead of ES2 like it should. Thanks @entity for reporting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@4566 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
9acca683c9
commit
12ced79ad7
|
@ -44,9 +44,9 @@ COGLES1Texture::COGLES1Texture(IImage* origImage, const io::path& name, COGLES1D
|
|||
|
||||
#ifndef GL_BGRA
|
||||
// whoa, pretty badly implemented extension...
|
||||
if (Driver->FeatureAvailable[COGLES2ExtensionHandler::IRR_IMG_texture_format_BGRA8888] ||
|
||||
Driver->FeatureAvailable[COGLES2ExtensionHandler::IRR_EXT_texture_format_BGRA8888] ||
|
||||
Driver->FeatureAvailable[COGLES2ExtensionHandler::IRR_APPLE_texture_format_BGRA8888])
|
||||
if (Driver->FeatureAvailable[COGLES1ExtensionHandler::IRR_IMG_texture_format_BGRA8888] ||
|
||||
Driver->FeatureAvailable[COGLES1ExtensionHandler::IRR_EXT_texture_format_BGRA8888] ||
|
||||
Driver->FeatureAvailable[COGLES1ExtensionHandler::IRR_APPLE_texture_format_BGRA8888])
|
||||
GL_BGRA = 0x80E1;
|
||||
else
|
||||
GL_BGRA = GL_RGBA;
|
||||
|
|
Loading…
Reference in New Issue