View Full Version : Can't use texture format ECF_A8R8G8B8 on Motorola XOOM

07-23-2011, 08:05 AM
IImage* pImage = m_pDriver->createImage( ECF_A8R8G8B8, dimTemp );
for( int y=0; y<pImage->getDimension().Height; y++ )
for( int x=0; x<pImage->getDimension().Width; x++ )
pImage->setPixel( x, y, SColor(255,0,0,255) );

m_pDriver->addTexture( "MyTexture", pImage );


Can't use texture format ECF_A8R8G8B8 on Motorola XOOM.
The texture is white only.

07-23-2011, 05:24 PM
_IRR_IPHONE_PLATFORM_ is defined. in IrrCompileConfig.h Line 164.


if (InternalFormat==GL_BGRA)

in COGLESTexture.cpp Line 313.

but InternalFormat and PixelFormat are different can't be used on Tegra GPU.
Is this a bug?

07-24-2011, 01:07 AM
Hmm, I'm not sure. Does this mean my (proton based) existing Android games (http://www.appbrain.com/browse/dev/Robinson+Technologies) won't work right on Tegra based devices too? Or maybe I never use the problematic surface format on them, unsure.

I need to get a Xoom and fix stuff.

Or if you figure it out, please post a patch.

This may be tricky if we actually have to scan the GLES properties and adjust things based on the chipset found...