Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
Sri Sham Haran 2023-03-26 20:29:41 +08:00
commit 0f9afc2a18
1 changed files with 17 additions and 6 deletions

View File

@ -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