Fix building error with OGRE 1.12.9
authorPavel Procopiuc <pavel.procopiuc@gmail.com>
Wed, 8 Jun 2022 11:55:33 +0000 (13:55 +0200)
committerNobuhiro Iwamatsu <iwamatsu@debian.org>
Mon, 16 Jan 2023 02:23:50 +0000 (02:23 +0000)
Gbp-Pq: Name 0005-Fix-building-error-with-OGRE-1.12.9.patch

contrib/modules/ovis/src/ovis.cpp

index 1fa6db9295b27e48a496812553f9185b7960bd93..8c0e3431e4c1edb4cdbc69a4695b9c24be23b676 100644 (file)
@@ -453,7 +453,8 @@ public:
         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);