PDA

View Full Version : glFlush ran right after OpenGL initialization = background RGB (115,178,181). Why?



bubblegum
06-27-2003, 12:25 PM
win32

So I run glFlush in a single buffer mode after init and get this background color.

Does it mean that upon intialization OpenGL clears the rendering context to this color?

thanks

bubblegum
06-27-2003, 04:56 PM
Have to add - the WinClass background set to NULL

06-28-2003, 01:10 AM
I think the assumption that OpenGL clears the rendering context is false. If you put in a clear before calling glFlush will the color probably be different.

If you really want the answer should it be in the documentation but I dont see how this can be important. Just clear the context to any color you want.

06-28-2003, 12:57 PM
Yep, I agree it's little importance, but anyway. Just interesting.