--- a/modules/ovis/src/ovis.cpp +++ b/modules/ovis/src/ovis.cpp @@ -453,7 +453,8 @@ class WindowSceneImpl : public WindowScene if(tus->getTextureName() != name) { RTShader::ShaderGenerator::getSingleton().invalidateMaterial( - RTShader::ShaderGenerator::DEFAULT_SCHEME_NAME, *bgplane->getMaterial()); + RTShader::ShaderGenerator::DEFAULT_SCHEME_NAME, bgplane->getMaterial()->getName(), + RESOURCEGROUP_NAME); tus->setTextureName(name); tus->setTextureAddressingMode(TAM_CLAMP);