diff options
Diffstat (limited to 'src/effects/heptagon_effect.cc')
| -rw-r--r-- | src/effects/heptagon_effect.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/effects/heptagon_effect.cc b/src/effects/heptagon_effect.cc index 3321517..31e94e7 100644 --- a/src/effects/heptagon_effect.cc +++ b/src/effects/heptagon_effect.cc @@ -1,6 +1,7 @@ // Heptagon effect v2 implementation #include "effects/heptagon_effect.h" +#include "util/fatal_error.h" #include "gpu/gpu.h" #include "gpu/post_process_helper.h" #include "gpu/shaders.h" @@ -9,10 +10,8 @@ HeptagonEffect::HeptagonEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), sampler_(nullptr) { - // Headless mode: skip GPU resource creation - if (ctx_.device == nullptr) { - return; - } + // Headless mode: skip GPU resource creation (compiled out in STRIP_ALL) + HEADLESS_RETURN_IF_NULL(ctx_.device); // Init uniforms uniforms_buffer_.init(ctx_.device); |
