From c36321a4c199c24a98cf3acef49e986ea65ae3f1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 10 Oct 2012 00:59:39 +0200 Subject: [PATCH] Inform about input sizes also in the last pass. --- effect_chain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effect_chain.cpp b/effect_chain.cpp index 4eda18d..4e43eed 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -918,6 +918,7 @@ void EffectChain::finalize() output_node->output_texture_width = phases[i]->output_width; output_node->output_texture_height = phases[i]->output_height; } + inform_input_sizes(phases.back()); } for (unsigned i = 0; i < inputs.size(); ++i) { @@ -962,8 +963,8 @@ void EffectChain::render_to_screen() for (unsigned phase = 0; phase < phases.size(); ++phase) { // See if the requested output size has changed. If so, we need to recreate // the texture (and before we start setting up inputs). + inform_input_sizes(phases[phase]); if (phase != phases.size() - 1) { - inform_input_sizes(phases[phase]); find_output_size(phases[phase]); Node *output_node = phases[phase]->effects.back(); -- 2.39.2