sw_engine SwRaster: Initialize uninitialized transform value 62/268962/1
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 5 Jan 2022 01:42:41 +0000 (17:42 -0800)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 5 Jan 2022 08:42:26 +0000 (00:42 -0800)
Change-Id: I7aac462c6d6e481655c35a10b237970de7dbea76

src/lib/sw_engine/tvgSwRaster.cpp

index 28b1e59..6602998 100644 (file)
@@ -907,7 +907,9 @@ static bool _rasterScaledRleRGBAImage(SwSurface* surface, const SwImage* image,
 static bool _scaledRleRGBAImage(SwSurface* surface, const SwImage* image, const Matrix* transform, const SwBBox& region, uint32_t opacity)
 {
     Matrix itransform;
+
     if (transform && !mathInverse(transform, &itransform)) return false;
+    else mathIdentity(&itransform);
 
     auto halfScale = _halfScale(image->scale);
 
@@ -1226,7 +1228,9 @@ static bool _rasterScaledRGBAImage(SwSurface* surface, const SwImage* image, con
 static bool _scaledRGBAImage(SwSurface* surface, const SwImage* image, const Matrix* transform, const SwBBox& region, uint32_t opacity)
 {
     Matrix itransform;
+
     if (transform && !mathInverse(transform, &itransform)) return false;
+    else mathIdentity(&itransform);
 
     auto halfScale = _halfScale(image->scale);