Jump to content
  • Advertisement
Sign in to follow this  
Nirupma

Does glGetIntegerv() internally call glFlush()?

This topic is 3090 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 am trying to overload the built in glFlush function. When I try to call glGetIntegerv() from the newly defined glFlush(), the program crashes. For this I need to know whether glGetIntegerv() function internally calls glFlush or not? Since then it becomes an infinite loop and I am bound to get Segmentation fault.

Share this post


Link to post
Share on other sites
Advertisement
How an implementation choses to flush its command queue when feeding back queries from the application is not specified. However, if commands are queued, the queue must be flushed in order to serve your request. If it does so with glFlush, I guess you're in trouble. But why are you doing this anyway?

Share this post


Link to post
Share on other sites
Why not overload wglSwapBuffers/glxSwapBuffers instead? Other than glFlush, this guarantees that you have a complete frame.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!