diff options
author | Antti Määttä <antti.maatta@qt.io> | 2019-08-14 14:14:29 +0300 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2019-08-15 12:10:43 +0300 |
commit | 681add5f66d83e7e73bbe7a9fc8bb71cd3814ce2 (patch) | |
tree | 3b9a653c926f1787eea7acedaed7a451a9614795 /src | |
parent | f5988fadde4286298bc323fc161e0b0c76f953f1 (diff) |
Fix caching of effect images
Similar fix was done for the custom materials.
Change-Id: I8fbb4b7df975d74d289616125ac9d98417d53475
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/runtimerender/Qt3DSRenderEffectSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtimerender/Qt3DSRenderEffectSystem.cpp b/src/runtimerender/Qt3DSRenderEffectSystem.cpp index 3d069e8..a05b030 100644 --- a/src/runtimerender/Qt3DSRenderEffectSystem.cpp +++ b/src/runtimerender/Qt3DSRenderEffectSystem.cpp @@ -1904,11 +1904,11 @@ struct SEffectSystem : public IEffectSystem if (theOffscreenRenderer.HasOffscreenRenderer(*theStrPtr)) { theOffscreenRenderer.GetRenderedItem(*theStrPtr); } else { - QT3DSU32 index = FindAllocatedImage(theDefs[idx].m_ImagePath); + QT3DSU32 index = FindAllocatedImage(*theStrPtr); if (index == QT3DSU32(-1)) { pImage = QT3DS_NEW(m_CoreContext.GetAllocator(), SImage)(); m_AllocatedImages.push_back( - eastl::make_pair(theDefs[idx].m_ImagePath, pImage)); + eastl::make_pair(*theStrPtr, pImage)); } else { pImage = m_AllocatedImages[index].second; } |