summaryrefslogtreecommitdiff
path: root/games/openmw/files/patch-components_resource_imagemanager.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2025-06-12 20:16:18 +0200
committerDima Panov <fluffy@FreeBSD.org>2025-06-17 03:30:43 +0300
commit13a36f14c8a5aab2b19352e04ab52d3ce971f927 (patch)
treeee6bebbeb8564bfb6370a87c87f2ebb32493858c /games/openmw/files/patch-components_resource_imagemanager.cpp
parentsysutils/UEFITool: remove qt5 flavour (diff)
games/openmw: fix build against recent mygui and libc++ 19
PR: 284814
Diffstat (limited to 'games/openmw/files/patch-components_resource_imagemanager.cpp')
-rw-r--r--games/openmw/files/patch-components_resource_imagemanager.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/games/openmw/files/patch-components_resource_imagemanager.cpp b/games/openmw/files/patch-components_resource_imagemanager.cpp
new file mode 100644
index 000000000000..5064982f2abe
--- /dev/null
+++ b/games/openmw/files/patch-components_resource_imagemanager.cpp
@@ -0,0 +1,29 @@
+--- components/resource/imagemanager.cpp.orig 2023-08-08 09:23:20 UTC
++++ components/resource/imagemanager.cpp
+@@ -58,7 +58,7 @@ namespace Resource
+
+ }
+
+- bool checkSupported(osg::Image* image, const std::string& filename)
++ bool checkSupported(osg::Image* image)
+ {
+ switch(image->getPixelFormat())
+ {
+@@ -83,7 +83,7 @@ namespace Resource
+ return true;
+ }
+
+- osg::ref_ptr<osg::Image> ImageManager::getImage(const std::string &filename, bool disableFlip)
++ osg::ref_ptr<osg::Image> ImageManager::getImage(std::string_view filename, bool disableFlip)
+ {
+ const std::string normalized = mVFS->normalizeFilename(filename);
+
+@@ -147,7 +147,7 @@ namespace Resource
+ osg::ref_ptr<osg::Image> image = result.getImage();
+
+ image->setFileName(normalized);
+- if (!checkSupported(image, filename))
++ if (!checkSupported(image))
+ {
+ static bool uncompress = (getenv("OPENMW_DECOMPRESS_TEXTURES") != nullptr);
+ if (!uncompress)