https://gitlab.com/OpenMW/openmw/-/commit/307a131ca09f705b97f15ede1f702630cca6b396

Index: components/sceneutil/texturetype.hpp
--- components/sceneutil/texturetype.hpp.orig
+++ components/sceneutil/texturetype.hpp
@@ -18,7 +18,7 @@ namespace SceneUtil
         {
         }
 
-        static const osg::StateAttribute::Type AttributeType = static_cast<osg::StateAttribute::Type>(69420);
+        static const osg::StateAttribute::Type AttributeType = static_cast<osg::StateAttribute::Type>(69);
         META_StateAttribute(SceneUtil, TextureType, AttributeType)
 
         bool isTextureAttribute() const override { return true; }
