X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fgamma%2Fgamma.C;h=f03df480dad900444415f23634fc9ad3c101f128;hb=e04ca4a9e14ac5d4163e92ed4d614ac39abb7440;hp=71267770eca9cbad4ba90006402bf02d4bc18c4d;hpb=1c6e05239a27d92813c27c697ccac25378b9efa0;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/gamma/gamma.C b/cinelerra-5.1/plugins/gamma/gamma.C index 71267770..f03df480 100644 --- a/cinelerra-5.1/plugins/gamma/gamma.C +++ b/cinelerra-5.1/plugins/gamma/gamma.C @@ -437,29 +437,23 @@ int GammaMain::process_buffer(VFrame *frame, frame_rate, use_opengl); - if(use_opengl) - { + int plot = config.plot; + if( config.automatic ) { + calculate_max(frame); + plot = 1; // Always plot to set the slider + } + if( plot ) { + send_render_gui(this); + } + + if(use_opengl) { // Aggregate if(next_effect_is(_("Histogram"))) return 0; if(next_effect_is(_("Color Balance"))) return 0; - - return run_opengl(); } - else - if(config.automatic) - { - calculate_max(frame); -// Always plot to set the slider - send_render_gui(this); - } - else - if(config.plot) - { - send_render_gui(this); - } if(!engine) engine = new GammaEngine(this); engine->process_packages(GammaEngine::APPLY, frame);