Send the right inv_gamma_22 variable to the uniforms.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 18:25:36 +0000 (20:25 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 18:25:36 +0000 (20:25 +0200)
lift_gamma_gain_effect.cpp

index acfeb86..b32ed93 100644 (file)
@@ -38,5 +38,5 @@ void LiftGammaGainEffect::set_uniforms(GLhandleARB glsl_program_num, const std::
                2.2f / gamma.r,
                2.2f / gamma.g,
                2.2f / gamma.b);
-       set_uniform_vec3(glsl_program_num, prefix, "inv_gamma_22", (float *)&gain_pow_inv_gamma);
+       set_uniform_vec3(glsl_program_num, prefix, "inv_gamma_22", (float *)&inv_gamma_22);
 }