From Stephane Lamoliatte, "Here is a patch that fix the strange bug describe on the osg-user group. Finally it seems to not come from the empty geode. The origin of the problem seems to be the uniform initialization during the building of the program which call a glUseProgram. If your scene never display the node that contains the shader and if there is no other shader on the scene, this "glUseProgram" is the only one that is called during your simulation. So, this shader is applied on all the scene.
From Stephane Lamoliatte, "Here is a patch that fix the strange bug describe on the osg-user group.
Finally it seems to not come from the empty geode. The origin of the problem seems to be the uniform initialization during the building of the program which call a glUseProgram.
If your scene never display the node that contains the shader and if there is no other shader on the scene, this "glUseProgram" is the only one that is called during your simulation. So, this shader is applied on all the scene.

I fix this bug by switching off the shader (by calling glUseProgram(0) ) during the compilation of a state which does not contain the shader.
"


koshman86/osg,ntoand/osg,artoolkit/osg,koshman86/osg,XiaoCC/osg,ghub/osg,stmh/osg,omega-hub/osg,ntoand/osg,artoolkit/osg,artoolkit/osg,ghub/osg,XiaoCC/osg,XiaoCC/osg,ntoand/osg,stmh/osg,stmh/osg,artoolkit/osg,stmh/osg,ghub/osg,omega-hub/osg,stmh/osg,koshman86/osg,XiaoCC/osg,XiaoCC/osg,koshman86/osg,omega-hub/osg,ntoand/osg,omega-hub/osg,ghub/osg