X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.cpp;h=a0eef117c0fe972cf6dc4df7d21cdcf586996a90;hp=a6aa0b7db07ca1e14fd167dd79110231a89690f9;hb=907cb1eff7308026f467ee9cc659cd8a725774da;hpb=82958e6364fccc2f13d6e3d1ccbca44c6b27acb7 diff --git a/effect_chain.cpp b/effect_chain.cpp index a6aa0b7..a0eef11 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -2073,6 +2073,9 @@ void EffectChain::execute_phase(Phase *phase, bool render_to_texture, // since they can be updated from there. setup_uniforms(phase); glDispatchCompute(x, y, z); + check_error(); + glMemoryBarrier(GL_TEXTURE_FETCH_BARRIER_BIT | GL_TEXTURE_UPDATE_BARRIER_BIT); + check_error(); } else { // Uniforms need to come after set_gl_state(), since they can be updated // from there.