]> git.sesse.net Git - movit/blobdiff - effect_chain.cpp
Fix a bug where the wrong effect would be asked for compute shaders dimensions.
[movit] / effect_chain.cpp
index c6bac8078e13b10ed9af621e9b00e80f9cfa8361..a4d9c86761a48458a35a340ee5884c3156ac670a 100644 (file)
@@ -2172,7 +2172,7 @@ void EffectChain::execute_phase(Phase *phase,
 
        if (phase->is_compute_shader) {
                unsigned x, y, z;
-               phase->output_node->effect->get_compute_dimensions(phase->output_width, phase->output_height, &x, &y, &z);
+               phase->compute_shader_node->effect->get_compute_dimensions(phase->output_width, phase->output_height, &x, &y, &z);
 
                // Uniforms need to come after set_gl_state() _and_ get_compute_dimensions(),
                // since they can be updated from there.