• Advertisement
Sign in to follow this  

Does glGetIntegerv() internally call glFlush()?

This topic is 2910 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
I am trying to access the frame buffer of an application without modifying it.

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