
23 Feb
2007
23 Feb
'07
10:38 a.m.
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.