From a78f5182e48443054ab54eff27345add1cf85c77 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 18 Sep 2024 23:53:17 +0200 Subject: [PATCH] Replace toNormalized by Normalized fname type cannot be changed because it's part of mygui library interface. --- components/myguiplatform/myguitexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/myguiplatform/myguitexture.cpp b/components/myguiplatform/myguitexture.cpp index fe2b700049..9d865e1296 100644 --- a/components/myguiplatform/myguitexture.cpp +++ b/components/myguiplatform/myguitexture.cpp @@ -95,7 +95,7 @@ namespace osgMyGUI if (!mImageManager) throw std::runtime_error("No imagemanager set"); - osg::ref_ptr image(mImageManager->getImage(VFS::Path::toNormalized(fname))); + osg::ref_ptr image(mImageManager->getImage(VFS::Path::Normalized(fname))); mTexture = new osg::Texture2D(image); mTexture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); mTexture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE);