forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More fixes to rendering of SVG files with broken text tags. Also backports upstream patch to fix godotengine#97078.
- Loading branch information
Showing
16 changed files
with
136 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
thirdparty/thorvg/patches/pr2740-renderer-crash-hotfix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
From 8009c75465e5b35da2d5f53532bc65f6df202a3a Mon Sep 17 00:00:00 2001 | ||
From: Hermet Park <[email protected]> | ||
Date: Tue, 17 Sep 2024 11:35:48 +0900 | ||
Subject: [PATCH] renderer: hotfix a crash | ||
|
||
prevent a nullptr memory access | ||
regression by f5337015e971d24379d2ee664895503ab8945e13 | ||
|
||
issue: https://github.com/godotengine/godot/issues/97078 | ||
--- | ||
src/renderer/tvgShape.h | 6 ++++-- | ||
2 files changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/src/renderer/tvgShape.h b/src/renderer/tvgShape.h | ||
index 221931dee..e120a85c6 100644 | ||
--- a/src/renderer/tvgShape.h | ||
+++ b/src/renderer/tvgShape.h | ||
@@ -51,8 +51,9 @@ struct Shape::Impl | ||
|
||
bool render(RenderMethod* renderer) | ||
{ | ||
+ if (!rd) return false; | ||
+ | ||
Compositor* cmp = nullptr; | ||
- bool ret; | ||
|
||
renderer->blend(shape->blend()); | ||
|
||
@@ -61,7 +62,7 @@ struct Shape::Impl | ||
renderer->beginComposite(cmp, CompositeMethod::None, opacity); | ||
} | ||
|
||
- ret = renderer->renderShape(rd); | ||
+ auto ret = renderer->renderShape(rd); | ||
if (cmp) renderer->endComposite(cmp); | ||
return ret; | ||
} | ||
@@ -117,6 +118,7 @@ struct Shape::Impl | ||
|
||
RenderRegion bounds(RenderMethod* renderer) | ||
{ | ||
+ if (!rd) return {0, 0, 0, 0}; | ||
return renderer->region(rd); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.