From: seungho baek Date: Wed, 22 Nov 2023 11:42:49 +0000 (+0900) Subject: [Tizen] Fix gpu masking error X-Git-Tag: accepted/tizen/7.0/unified/20231123.100225^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F301777%2F3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] Fix gpu masking error Change-Id: Icd6c3a14df573ddec2f7b92a05649fe5eb39ea76 Signed-off-by: seungho baek --- diff --git a/dali-toolkit/internal/visuals/image/image-visual.cpp b/dali-toolkit/internal/visuals/image/image-visual.cpp index ee3d215..6b639dd 100644 --- a/dali-toolkit/internal/visuals/image/image-visual.cpp +++ b/dali-toolkit/internal/visuals/image/image-visual.cpp @@ -1190,6 +1190,7 @@ void ImageVisual::CheckMaskTexture() TextureSet textures = mImpl->mRenderer.GetTextures(); if(textures && textures.GetTextureCount() >= TEXTURE_COUNT_FOR_GPU_ALPHA_MASK) { + mImpl->mRenderer.RegisterProperty(MASK_TEXTURE_RATIO_NAME, Vector2::ONE); if(mMaskingData->mCropToMask) { mImpl->mRenderer.RegisterProperty(MASK_TEXTURE_RATIO_NAME, ComputeMaskTextureRatio());