Does glGetIntegerv() internally call glFlush()?
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.
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?
Why not overload wglSwapBuffers/glxSwapBuffers instead? Other than glFlush, this guarantees that you have a complete frame.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement