I have searched for a couple hours now and haven’t found the answer so maybe someone here knows
Is there a way to disable GLSL shaders and drop the application back into the FFP after using one with a call to glUseProgramObjectARB()?
It would be great if there was something similar to the ARB vertex program extension where you can do:
GLboolean glPrev;
glGetBooleanv( GL_VERTEX_PROGRAM_ARB, &glPrev );
prev = ( glPrev != 0 );
// if the desired mode is not already on
if( prev != enable ) {
// set it to the desired mode
if( enable ) {
glEnable( GL_VERTEX_PROGRAM_ARB );
}
else {
glDisable( GL_VERTEX_PROGRAM_ARB );
}
_vertexProgramsOn = enable;
}
Worst comes to worst I could recreate the fixed-function pipeline in a shader but that seems unnecessary to me.