OGL red/blue swap bug on Android

[img]http://s3-eu-west-1.amazonaws.com/stvle/819d42843d9cfd239c375110d8783ed4.png[/img]

 

Interesting stuff.

Yes, it does sound like a misendianism, but couldn't say for sure where to look for the problem..

 

ok, i'll look into it and report.

 

ImagePixelData::Ptr OpenGLImageType::create (const Image& image) const
{
    OpenGLContext* currentContext = OpenGLContext::getCurrentContext();
    jassert (currentContext != nullptr);

    int w = image.getWidth();
    int h = image.getHeight();

    ScopedPointer<OpenGLFrameBufferImage> im (new OpenGLFrameBufferImage (*currentContext, w, h));

    if (!im->frameBuffer.initialise(*currentContext, image))
        return nullptr;
    
    return im.release();
}