Re: Re: clear [ColorBuffer]

Sven Panne <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.