Code: Select all
2017/12/05 20:21:05-001 7 I ogre Texture: TaharezLook.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) Internal format is PF_A8R8G8B8,256x256x1.
2017/12/05 20:32:38-264 7 I ogre GLES2TextureBuffer::upload - ID: 1 Target: 3553 Format: PF_A8R8G8B8 Origin format: 0x80e1 Data type: 0x1401
(Error) in function: glTexSubImage2D GL: 502 (GL_INVALID_OPERATION) VF: A0119 (the combination of internalFormat, format and type is not supported)
at old version the logger is:
Code: Select all
2017/11/17 17:15:16-934 7 I ogre GLES2Texture::create - Mip: 0 Name: TaharezLook.png ID: 2 Width: 256 Height: 256 Internal Format: 0x1908 Format: 0x1908 Datatype: 0x1401
2017/11/17 17:15:16-938 7 I ogre Texture: TaharezLook.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) Internal format is PF_A8B8G8R8,256x256x1.
2017/11/17 17:15:16-941 7 I ogre GLES2TextureBuffer::upload - ID: 2 Target: 3553 Format: PF_A8B8G8R8 Origin format: 6408 Data type: 0x1401
The version change is 11449:GLES2: blitFromMemory - remove needless bulkPixelConversion
Code: Select all
RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp
-#if OGRE_PLATFORM != OGRE_PLATFORM_APPLE_IOS
- if (src.format == PF_A8R8G8B8)
- {
- scaled.format = PF_A8B8G8R8;
- PixelUtil::bulkPixelConversion(src, scaled);
- }
-#endif
And when i use PF_A8B8G8R8 format force load the file "TaharezLook.png".It's success.
Code: Select all
Ogre::TextureManager* manager = Ogre::TextureManager::getSingletonPtr();
d_texture = manager->load(_filename, resourceGroup.c_str(), Ogre::TEX_TYPE_2D, 0, 1.0f, false, Ogre::PF_A8B8G8R8, false);
Code: Select all
GLenum GLES2PixelUtil::getGLOriginFormat(PixelFormat mFormat)
Code: Select all
case PF_A8R8G8B8:
case PF_A4R4G4B4:
case PF_A1R5G5B5:
case PF_B8G8R8A8:
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS
return GL_BGRA_EXT;
#else
return GL_RGBA;
#endif
Code: Select all
#if OGRE_ENDIAN == OGRE_ENDIAN_BIG
{GL_RGB, GL_UNSIGNED_BYTE, GL_RGB}, // PF_R8G8B8
{GL_NONE}, // PF_B8G8R8
{GL_NONE}, // PF_A8R8G8B8
{GL_NONE}, // PF_A8B8G8R8
{GL_BGRA_EXT, GL_UNSIGNED_BYTE, GL_BGRA_EXT}, // PF_B8G8R8A8
#else
{GL_NONE}, // PF_R8G8B8
{GL_RGB, GL_UNSIGNED_BYTE, GL_RGB}, // PF_B8G8R8
{GL_BGRA_EXT, GL_UNSIGNED_BYTE, GL_BGRA_EXT}, // PF_A8R8G8B8
{GL_RGBA, GL_UNSIGNED_BYTE, GL_RGBA}, // PF_A8B8G8R8
{GL_NONE}, // PF_B8G8R8A8
#endif
Any help?