from the tests I made, these functions work on “global” OpenGL state machine, meaning that calling them affect every framebuffer, not only the currently bound framebuffer.
I’ve searched on Internet but the man pages are not really explicit about the behavior. For example, from http://www.opengl.org/sdk/docs/man/xhtml/glColorMask.xml :
glColorMask specifies whether the individual color components in the frame buffer can or cannot be written.
Since they talk about frame buffer (yes I know “frame buffer” and not “framebuffer object” …) it’s a bit surprising for me. I would expect them to affect the bound framebuffer only. I think I just misunderstood the sentance.
What do you think about this ?