I am working with OpenGL and for some classes I wrote I would have to pass a shader, although the class is only used, when a shader is already active. Is there a way to get the currently active program from OpenGL, so a function like glGetActiveProgram()?