Does glGetIntegerv() internally call glFlush()?

Started by
2 comments, last by Nirupma 13 years, 11 months ago
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.
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?
I am trying to access the frame buffer of an application without modifying it.
Why not overload wglSwapBuffers/glxSwapBuffers instead? Other than glFlush, this guarantees that you have a complete frame.
In which .so file is glxSwapBuffers included?

This topic is closed to new replies.

Advertisement