Switch GL/GLSL mode

Hi,

I want to compare the performances beetween classic Opengl and Shading Language. The idea is to insert a button in order to chose the implementation.

But, once shaders were activated, I can’t inactivate them, even if I destroy the programm. How can I switch easily beetxeen these two functionning?

If someone can answer me or point toward a topic

Thanks

Bind program 0 (zero) and you will return to fixed function.

Thanks! It was so simple :slight_smile:

if(shader_activate){
glUseProgram(PhongProg);
}else{
glUseProgram(0);
}

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