I am trying to draw spheres to the screen without removing them (to get some king of "trails" effect) with OpenGL (glut).
I also have text on the screen which I want to be able to read, so I must manually draw a black rectangle over the old text and then draw the new one.
The point is I also want to turn the "trails" on/off while running, but Ive encountered a very weird problem:
When I used single buffering, everything went just fine, but when I switched to double buffering and used only the front buffer, I started to get flickering on the text. This happened only in fullscreen. In windowed mode with the same resolution(1920x1080) there is no flickering, although I get the same fps (about 250).
Does anybody know what is causing this and why?