Disabling GLSL

I have searched for a couple hours now and haven’t found the answer so maybe someone here knows :slight_smile:

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 ) {

	else {


	_vertexProgramsOn = enable;

Worst comes to worst I could recreate the fixed-function pipeline in a shader but that seems unnecessary to me.

glUseProgramObject(0) will switch you back to the fixed function pipeline.

ah simple and elegant as I hoped for… thank you very much

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.