diff options
Diffstat (limited to 'src/gpu')
| -rw-r--r-- | src/gpu/effect.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/effect.cc b/src/gpu/effect.cc index 42e623a..58e011c 100644 --- a/src/gpu/effect.cc +++ b/src/gpu/effect.cc @@ -177,8 +177,8 @@ void MainSequence::init(const GpuContext& ctx, int width, int height) { passthrough_effect_->resize(width, height); for (ActiveSequence& entry : sequences_) { - entry.seq->init(this); - entry.seq->resize(width, height); + entry.seq->resize(width, height); // Set dimensions FIRST + entry.seq->init(this); // Then init with correct dimensions } } @@ -187,8 +187,8 @@ void MainSequence::add_sequence(std::shared_ptr<Sequence> seq, float start_time, sequences_.push_back({seq, start_time, priority}); // If MainSequence is already initialized, init the new sequence immediately if (gpu_ctx.device) { - seq->init(this); - seq->resize(width_, height_); + seq->resize(width_, height_); // Set dimensions FIRST + seq->init(this); // Then init with correct dimensions } std::sort(sequences_.begin(), sequences_.end(), [](const ActiveSequence& a, const ActiveSequence& b) { |
