X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.cpp;h=40fb7333bcec17fec73683579e7c796925c5afe8;hp=a9d01a72f920b2409849165df1efcb776eb1dada;hb=ad66f9714e4a36008c341355700272a52484a785;hpb=b10c546f579c7ccb5939161e61a71cd18a3f9bbd diff --git a/flat_input.cpp b/flat_input.cpp index a9d01a7..40fb733 100644 --- a/flat_input.cpp +++ b/flat_input.cpp @@ -2,6 +2,7 @@ #include #include +#include "effect_util.h" #include "flat_input.h" #include "util.h" @@ -17,7 +18,8 @@ FlatInput::FlatInput(ImageFormat image_format, MovitPixelFormat pixel_format, GL needs_mipmaps(false), width(width), height(height), - pitch(width) + pitch(width), + pixel_data(NULL) { assert(type == GL_FLOAT || type == GL_UNSIGNED_BYTE); register_int("output_linear_gamma", &output_linear_gamma);