Difference between glFlush and glFinish()?
I was wondering what the difference between glFlush() and glFinish() is. I tried the documentation, but couldn''t grasp the difference. What is it and when do you use one or the other?
Ambassador: Mr. Bush are you stoned or just really, REALLY dumb?Pres. Bush - I assure you I am not stoned.
From the MSDN docs that accompany VS.NET Pro (and probably can be found online):
The glFinish function does not return until the effects of all previously called OpenGL functions are complete.
The glFlush function can return at any time. It does not wait until the execution of all previously issued OpenGL functions is complete.
That''s the dif. Both functions force execution of all previous graphics calls, but one delays execution and the other doesn''t (i.e. glFinish is a blocking call).
Peace,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
The glFinish function does not return until the effects of all previously called OpenGL functions are complete.
The glFlush function can return at any time. It does not wait until the execution of all previously issued OpenGL functions is complete.
That''s the dif. Both functions force execution of all previous graphics calls, but one delays execution and the other doesn''t (i.e. glFinish is a blocking call).
Peace,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[twitter]warrenm[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement