[HOpenGL] Re: clear [ColorBuffer]

Sven Panne sven.panne at aedion.de
Fri Feb 23 05:38:36 EST 2007


On Thursday 22 February 2007 16:38, h. wrote:
> Thanks a lot, it does work!
>
> I just read a hOpenGL tutorial, and nowhere was used the flush command in
> connection to clear the ColorBuffer

The reason that leaving out 'flush' seems to work sometimes is that some 
OpenGL implementations (e.g. Mesa in SW rendering mode) do not have the 
highly asynchronous behaviour allowed by the OpenGL spec. OTOH, e.g. NVIDIA's 
driver definitely needs a 'flush'/'swapBuffers'. So as a general rule, use 
one of these functions at the end of your display callback.

Cheers,
   S.


More information about the HOpenGL mailing list