The algorithm uses the FBOs to render-to-textures the intermediate results of the pipeline, in a multi-pass fashion, so that each step saves its output into a texture by an FBO and the next reads and processes it again. The code compiles and seems to run completely on the Mali, but there are then problems in viewing to the screen.