Hi folks i have problem try to bind 2 object one with shaders and other without heres is a pseudocode
SetUniform4f(…);
glUseProgramObjectARB(glslContext);
draw1ObjectWithShaders();
glUseProgramObjectARB(0);
glPushMatrix();
draw1ObjectWithoutShaders();
plPopMatrix();
what’s wrong with that? thxs in advance!!!
Komat
July 7, 2007, 5:35pm
2
Functions for setting value of uniform operate on currently bound program object. If no object is set at time of that call, function will report error and do nothing.
km11
July 10, 2007, 11:44am
3
Which means as Komar suggested, if you want to use SetUniform4f…
then switch calls
glUseProgramObjectARB(glslContext);
SetUniform4f(…); // set for glslContext object
system
Closed
October 19, 2021, 7:38pm
4
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.