diff --git a/app/render/backend/opengl/openglworker.cpp b/app/render/backend/opengl/openglworker.cpp index 357177858..5d74d6c68 100644 --- a/app/render/backend/opengl/openglworker.cpp +++ b/app/render/backend/opengl/openglworker.cpp @@ -311,9 +311,12 @@ void OpenGLWorker::RunNodeAccelerated(const Node *node, const TimeRange &range, // Some nodes use multiple iterations for optimization OpenGLTextureCache::ReferencePtr output_tex; + for (int iteration=0;iterationAcceleratedCodeIterations();iteration++) { // Set iteration number + shader->bind(); shader->setUniformValue("ove_iteration", iteration); + shader->release(); // If this is not the first iteration, set the parameter that will receive the last iteration's texture OpenGLTextureCache::ReferencePtr source_tex = dst_refs.at((iteration+1)%dst_refs.size());