OGL red/blue swap bug on Android


#1

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

 


#2

Interesting stuff.

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


#3

 

ok, i'll look into it and report.

 


#4


#5
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();
}