I couldn’t find anywhere in the official specification of OpenGL functions what effect does obscuring or minimizing a window have on front and back buffers. Can this cause the pixels in the buffers to not match the drawing commands issued by my application? Is there any difference in the behaviour between front and back buffer? I would expect that the content of the back buffer shouldn’t be affected by such events but are there any guarantees? Is that platform specific?
Search “pixel ownership rule” in the spec.
Basically any non-visible pixel in both front and back buffer are undefined. Undefined means that sometimes they can stay untouched, but this will be very fragile and dangerous to rely on.
Use an FBO instead if you want to guarantee long term conservation of an offscreen framebuffer.
Damn, FBOs are more difficult to set up…
You can do it old school way, doing a manual copy to texture of the current framebuffer. This will only work if you are able to do the copy before minimize/cover happens.