File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class IGPUObjectFromAssetConverter
173
173
protected:
174
174
virtual inline void handleGPUObjCaching (asset::IAsset* _asset, const core::smart_refctd_ptr<core::IReferenceCounted>& _gpuobj)
175
175
{
176
- if (_asset)
176
+ if (_asset && _gpuobj )
177
177
m_assetManager->convertAssetToEmptyCacheHandle (_asset,core::smart_refctd_ptr (_gpuobj));
178
178
}
179
179
@@ -216,7 +216,7 @@ class CAssetPreservingGPUObjectFromAssetConverter : public IGPUObjectFromAssetCo
216
216
protected:
217
217
virtual inline void handleGPUObjCaching (asset::IAsset* _asset, const core::smart_refctd_ptr<core::IReferenceCounted>& _gpuobj) override
218
218
{
219
- if (_asset)
219
+ if (_asset && _gpuobj )
220
220
m_assetManager->insertGPUObjectIntoCache (_asset,core::smart_refctd_ptr (_gpuobj));
221
221
}
222
222
};
You can’t perform that action at this time.
0 commit comments