Fix a (harmless) Valgrind hit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 Oct 2012 18:23:07 +0000 (20:23 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 Oct 2012 18:23:07 +0000 (20:23 +0200)
gamma_compression_effect.cpp

index 945267c..0f0a2e4 100644 (file)
@@ -1,4 +1,5 @@
 #include <math.h>
 #include <math.h>
+#include <string.h>
 #include <assert.h>
 
 #include "gamma_compression_effect.h"
 #include <assert.h>
 
 #include "gamma_compression_effect.h"
@@ -8,6 +9,7 @@ GammaCompressionEffect::GammaCompressionEffect()
        : destination_curve(GAMMA_LINEAR)
 {
        register_int("destination_curve", (int *)&destination_curve);
        : destination_curve(GAMMA_LINEAR)
 {
        register_int("destination_curve", (int *)&destination_curve);
+       memset(compression_curve, 0, sizeof(compression_curve));
        register_1d_texture("compression_curve_tex", compression_curve, COMPRESSION_CURVE_SIZE);
 }
 
        register_1d_texture("compression_curve_tex", compression_curve, COMPRESSION_CURVE_SIZE);
 }