diff options
Diffstat (limited to 'src/effects/particles_effect.cc')
| -rw-r--r-- | src/effects/particles_effect.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/effects/particles_effect.cc b/src/effects/particles_effect.cc index 9d73bf7..709acbf 100644 --- a/src/effects/particles_effect.cc +++ b/src/effects/particles_effect.cc @@ -10,6 +10,11 @@ ParticlesEffect::ParticlesEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs) { + // Headless mode: skip GPU resource creation + if (ctx_.device == nullptr) { + return; + } + // Initialize uniforms uniforms_.init(ctx_.device); |
