PDA

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



Sandrot
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.

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

so...

if (InternalFormat==GL_BGRA)
InternalFormat=GL_RGBA;

in COGLESTexture.cpp Line 313.

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

Seth
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...