Sign in to follow this  
Nirupma

Does glGetIntegerv() internally call glFlush()?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this