Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
0f9afc2a18
|
@ -14,12 +14,23 @@ namespace SHADE
|
||||||
|
|
||||||
void SHParticleEmitterComponent::OnDestroy(void)
|
void SHParticleEmitterComponent::OnDestroy(void)
|
||||||
{
|
{
|
||||||
emitterData.Free();
|
if (emitterData)
|
||||||
particleData.Free();
|
emitterData.Free();
|
||||||
freelistData.Free();
|
|
||||||
indicesData.Free();
|
if (particleData)
|
||||||
drawCallData.Free();
|
particleData.Free();
|
||||||
particleDescriptorSet.Free();
|
|
||||||
|
if (freelistData)
|
||||||
|
freelistData.Free();
|
||||||
|
|
||||||
|
if (indicesData)
|
||||||
|
indicesData.Free();
|
||||||
|
|
||||||
|
if (drawCallData)
|
||||||
|
drawCallData.Free();
|
||||||
|
|
||||||
|
if (particleDescriptorSet)
|
||||||
|
particleDescriptorSet.Free();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHParticleEmitterComponent::Emit(void) noexcept
|
void SHParticleEmitterComponent::Emit(void) noexcept
|
||||||
|
|
Loading…
Reference in New Issue