ofSaveScreen colour issues

#1

Hi all,

I’m drawing on top of a loaded image using an FBO and saving the result, however when I save - I lose colour in what I draw, but not the image.

Here’s what I draw on top of the image:

and when I save the image using ofSaveScreen or setting the pixels of the fbo to a new Image, I get this:

As you can see the red/orange isn’t present.

What could I be doing wrong here?

Using 0.10.1 on High Sierra 10.13.6

Any help is much appreciated, thanks.

#2

Ok, so I got colour in my saved image - fix was to use GL_RGB and not GL_RGBA when allocating FBO.