mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +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
1 changed files with 6 additions and 0 deletions
|
|
@ -145,6 +145,12 @@ ReflectionProbe::~ReflectionProbe()
|
||||||
#endif
|
#endif
|
||||||
if (mReflectionModeType == StaticCubemap && mStaticCubemap)
|
if (mReflectionModeType == StaticCubemap && mStaticCubemap)
|
||||||
mStaticCubemap->deleteObject();
|
mStaticCubemap->deleteObject();
|
||||||
|
|
||||||
|
if (mIrridianceMap)
|
||||||
|
mIrridianceMap->deleteObject();
|
||||||
|
|
||||||
|
if (mPrefilterMap)
|
||||||
|
mPrefilterMap->deleteObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue