mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #1596 from Areloch/ReflectProbeDataCleanupFix
Some checks failed
MacOSX Build / ${{matrix.config.name}} (map[build_type:Release cc:clang cxx:clang++ generator:Ninja name:MacOSX Latest Clang]) (push) Has been cancelled
Windows Build / ${{matrix.config.name}} (map[build_type:Release cc:cl cxx:cl environment_script:C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat generator:Visual Studio 17 2022 name:Windows Latest MSVC]) (push) Has been cancelled
Linux Build / ${{matrix.config.name}} (map[build_type:Release cc:gcc cxx:g++ generator:Ninja name:Ubuntu Latest GCC]) (push) Has been cancelled
Some checks failed
MacOSX Build / ${{matrix.config.name}} (map[build_type:Release cc:clang cxx:clang++ generator:Ninja name:MacOSX Latest Clang]) (push) Has been cancelled
Windows Build / ${{matrix.config.name}} (map[build_type:Release cc:cl cxx:cl environment_script:C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat generator:Visual Studio 17 2022 name:Windows Latest MSVC]) (push) Has been cancelled
Linux Build / ${{matrix.config.name}} (map[build_type:Release cc:gcc cxx:g++ generator:Ninja name:Ubuntu Latest GCC]) (push) Has been cancelled
Add cleanup of irradience and prefilter cubemap datas in reflection probes when the probe is deleted
This commit is contained in:
commit
42e8687067
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