I want to do something like this:
currentBlendFunc = glGetCurrentBlendFunc();
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// [...] do stuff
glBlendFunc(currentBlendFunc.src, currentBlendFunc.dest);
Is there a way to get the current blend func?