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?
According to the documentation the function that you are looking for is glGet with the arguements GL_BLEND_SRC, GL_BLEND_DST. This is one of the annoyances of OpenGL is that the get and sets don’t match up (amongst other things).