Results 1 to 3 of 3

Thread: Can't use texture format ECF_A8R8G8B8 on Motorola XOOM

  1. #1

    Default Can't use texture format ECF_A8R8G8B8 on Motorola XOOM

    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.

  2. #2

    Default It was found.

    _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?

  3. #3
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Hmm, I'm not sure. Does this mean my (proton based) existing Android games 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...
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Texture instead of gradient
    By Ockonal in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-25-2010, 08:18 AM
  2. The texture won't clear
    By Ockonal in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 10-08-2010, 07:41 AM
  3. New Texture 3D example
    By rombust in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 11-24-2009, 02:12 PM
  4. ClanLib 0.9 API documentation file format
    By rombust in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 10-01-2008, 02:09 PM
  5. relationship between GC and Texture?
    By logixoul in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 07-07-2008, 07:17 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •