summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/renderer/tvgPaint.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/thorvg/src/renderer/tvgPaint.h')
-rw-r--r--thirdparty/thorvg/src/renderer/tvgPaint.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/thirdparty/thorvg/src/renderer/tvgPaint.h b/thirdparty/thorvg/src/renderer/tvgPaint.h
index c7eb68b198..bc07ab52ab 100644
--- a/thirdparty/thorvg/src/renderer/tvgPaint.h
+++ b/thirdparty/thorvg/src/renderer/tvgPaint.h
@@ -87,7 +87,6 @@ namespace tvg
if (!rTransform) {
if (mathIdentity(&m)) return true;
rTransform = new RenderTransform();
- if (!rTransform) return false;
}
rTransform->override(m);
renderFlag |= RenderUpdateFlag::Transform;
@@ -98,7 +97,7 @@ namespace tvg
Matrix* transform()
{
if (rTransform) {
- rTransform->update();
+ if (renderFlag & RenderUpdateFlag::Transform) rTransform->update();
return &rTransform->m;
}
return nullptr;