summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch
diff options
context:
space:
mode:
authorMartin Capitanio <capnm@capitanio.org>2024-02-08 09:44:54 +0100
committerMartin Capitanio <capnm@capitanio.org>2024-02-08 11:24:46 +0100
commitb5ec79906cf078aa2862d3f44efbf5ef2d13d8ce (patch)
tree897f878c44954df680aa996c470d4c7e9e31584a /thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch
parenta0106607e889fb0ed4ab5bf84a4b2707c3ac5598 (diff)
downloadredot-engine-b5ec79906cf078aa2862d3f44efbf5ef2d13d8ce.tar.gz
ThorVG: update from v0.12.4 to v0.12.5
https://github.com/thorvg/thorvg/releases/tag/v0.12.5 + Full Changelog: https://github.com/thorvg/thorvg/compare/v0.12.4...v0.12.5 Godot-related SVG bug fixes: + sw_engine: Improve image up-scaler quality. thorvg/thorvg#1960 + renderer: Ensure canvas rendering continues despite invalid scene parts. thorvg/thorvg#1957 + Portability: Fix compiler shadowing warning (patch) thorvg/thorvg#1975
Diffstat (limited to 'thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch')
-rw-r--r--thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch b/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch
new file mode 100644
index 0000000000..e0647628d3
--- /dev/null
+++ b/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch
@@ -0,0 +1,23 @@
+diff --git a/thirdparty/thorvg/src/common/tvgLock.h b/thirdparty/thorvg/src/common/tvgLock.h
+index e6d993a41e..5dd3d5a624 100644
+--- a/thirdparty/thorvg/src/common/tvgLock.h
++++ b/thirdparty/thorvg/src/common/tvgLock.h
+@@ -38,10 +38,10 @@ namespace tvg {
+ {
+ Key* key = nullptr;
+
+- ScopedLock(Key& key)
++ ScopedLock(Key& k)
+ {
+- key.mtx.lock();
+- this->key = &key;
++ k.mtx.lock();
++ key = &k;
+ }
+
+ ~ScopedLock()
+@@ -68,3 +68,4 @@ namespace tvg {
+ #endif //THORVG_THREAD_SUPPORT
+
+ #endif //_TVG_LOCK_H_
++