OGL red/blue swap bug on Android



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();