| 353 | } |
| 354 | |
| 355 | void ParticleEmitter::unload(bool isReloading) |
| 356 | { |
| 357 | ScopeWriteLock systemScope(Particles::SystemLocker); |
| 358 | #if COMPILE_WITH_SHADER_COMPILER |
| 359 | UnregisterForShaderReloads(this); |
| 360 | #endif |
| 361 | |
| 362 | Particles::OnEmitterUnload(this); |
| 363 | |
| 364 | Graph.Clear(); |
| 365 | #if COMPILE_WITH_GPU_PARTICLES |
| 366 | GPU.Dispose(); |
| 367 | #endif |
| 368 | } |
| 369 | |
| 370 | AssetChunksFlag ParticleEmitter::getChunksToPreload() const |
| 371 | { |