I'm working with a 3D OpenGL application and I'm having a problem with blending functions. In my scene there are some solid objects that are drawn each frame. When the player touches the screen I want to show a kind of "flash" in the screen, and I've thought I can do this by showing a white square in front of everything and then reducing it's alpha until it's gone. The effect seems to work, but the problem is that when the withe layer is transparent no others objects are shown (so solid objects disappear since the white layer has completely disappeared, and then objects are drawn again. I'm quite new to OpenGL so I don't understand how exactly it works, can anyone take a look at my code and tell me what I'm missing?
Don't know why, but just drawing the white layer after the effects get it working (in fact it have sense... I think I've spent too many hours with OpenGL and I'm starting to feel unable to solve a 2+2 operation U_U')!