From 398bdccf4ef6d5dfca5e27f6e25f1856deceefcb Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 2 Dec 2020 11:16:57 -0800 Subject: GLTF Loader: fixed few issues with texture cache --- AssetLoader/interface/GLTFLoader.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'AssetLoader/interface') diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index b395c8c..2575898 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -426,6 +426,11 @@ private: float4 UVScaleBias{1, 1, 0, 0}; RefCntAutoPtr pCacheAllocation; + + bool IsValid() const + { + return pTexture || pCacheAllocation; + } }; std::vector Textures; }; -- cgit v1.2.3