summaryrefslogtreecommitdiff
path: root/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2021-03-04 13:56:44 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2021-03-04 13:56:44 +0000
commit34b1a8d927141fa7703a65daa443e70e39da5ffa (patch)
tree0b44daf13a97dbbe9187325e606568d4462b878f /graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp
parentgraphics/imp: Adopt port (diff)
- Resurrect, unbreak, and update to the latest version 2.1.0-beta
- Disable appleseed.studio for now: while it had been ported to Qt5, it still heavily relies on Python 2.x - Drop the options: C++11 is required now, and API examples are of little interest to end-users so just stop installing them - Add dependencies on `archivers/liblz4' and `graphics/openimageio' - GC no longer needed work-arounds for old versions of Clang
Diffstat (limited to 'graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp')
-rw-r--r--graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp b/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp
new file mode 100644
index 000000000000..b2ff1793384c
--- /dev/null
+++ b/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_texturecollectionitem.cpp
@@ -0,0 +1,19 @@
+--- src/appleseed.studio/mainwindow/project/texturecollectionitem.cpp.orig 2015-06-13 09:38:53 UTC
++++ src/appleseed.studio/mainwindow/project/texturecollectionitem.cpp
+@@ -108,11 +108,15 @@ namespace
+ texture_params.insert("filename", path);
+ texture_params.insert("color_space", "srgb");
+
++ // Workaround for GCC 4.2.1: we cannot construct object in .create() below
++ // because GCC will attempt to invoke copy ctor which is private of course.
++ SearchPaths paths;
++
+ return
+ DiskTexture2dFactory().create(
+ texture_name.c_str(),
+ texture_params,
+- SearchPaths());
++ paths);
+ }
+
+ auto_release_ptr<TextureInstance> create_texture_instance(const string& texture_name)