I think it is maybe not possible but who kows ? ;)
I'm developping an OpenGL plug-in under X-Plane 9 (flight simulation game) and I would like to recover OpenGL "default" draw state (enable bits, binds, unbinds, matrixes, etc...) like if I've just opened a new window... Some kind of "glLoadDefaults()" that may restore all Internal OpenGL states (enable bits, matrixes, etc...).
Do some of you think it is possible ? if yes : how ?
I'm asking you that question because into my plug-in the FrameBufferObjects (FBO) doesn't seem to work in the same way as in X-Plane 8.XX, (same PC, same VideoCard, same Drivers), so I'm beginint to wonder if X-Plane 9 doesn't sets a "special" context I'm not aware of squizzing FBOs (?!)
thank you for your attention,