mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Add cleanup of irradience and prefilter cubemap datas in reflection probes when the probe is deleted
This commit is contained in:
parent
9fe2eec813
commit
1741108a5b
|
|
@ -145,6 +145,12 @@ ReflectionProbe::~ReflectionProbe()
|
|||
#endif
|
||||
if (mReflectionModeType == StaticCubemap && mStaticCubemap)
|
||||
mStaticCubemap->deleteObject();
|
||||
|
||||
if (mIrridianceMap)
|
||||
mIrridianceMap->deleteObject();
|
||||
|
||||
if (mPrefilterMap)
|
||||
mPrefilterMap->deleteObject();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue