Archived

This topic is now archived and is closed to further replies.

Difference between glFlush and glFinish()?

This topic is 5510 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites