Replace toNormalized by Normalized

fname type cannot be changed because it's part of mygui library interface.
pull/3236/head
elsid 3 months ago
parent 85edc49f2f
commit a78f5182e4
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -95,7 +95,7 @@ namespace osgMyGUI
if (!mImageManager)
throw std::runtime_error("No imagemanager set");
osg::ref_ptr<osg::Image> image(mImageManager->getImage(VFS::Path::toNormalized(fname)));
osg::ref_ptr<osg::Image> 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);

Loading…
Cancel
Save