-
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
-
Senior Member
OpenGL Pro
Re: switch GL/GLSL mode
Bind program 0 (zero) and you will return to fixed function.
-
Re: switch GL/GLSL mode
Thanks! It was so simple
if(shader_activate){
glUseProgram(PhongProg);
}else{
glUseProgram(0);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules