View Full Version : Color Disappered Suddenly

03-24-2008, 08:12 AM

My App renders into an FBO and using vertex, geometry, fragment shaders, and everything works fine.
However when i return to the normal window frambuffer the color in my next rendering disappers, simple polygons that i am drawing are drawn only in white color.
The same code when used with no FBO at all works fine with all colors visible.

all my colors are enabled using

This occurs with or without textures & lighting.

Can somebody tell me what i am missing, something must have changed in the GL state machine when using the FBO.

I used a fragment shader to get the current color (gl_Color) and it was ok, meaning the correct color(not white).

Please Help,
Thanks in advance.