From: Steinar H. Gunderson Date: Mon, 8 Oct 2012 13:01:08 +0000 (+0200) Subject: FlatInput can only auto-expand from linear or sRGB, not e.g. Rec. 601/709 gamma. X-Git-Tag: 1.0~339 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=fdad0932f08649e69e824ee73a787671a5bc93a5 FlatInput can only auto-expand from linear or sRGB, not e.g. Rec. 601/709 gamma. --- diff --git a/flat_input.h b/flat_input.h index 3bcdc76..2e14488 100644 --- a/flat_input.h +++ b/flat_input.h @@ -17,7 +17,10 @@ public: void finalize(); // TODO: Check that we actually have the required extension. - virtual bool can_output_linear_gamma() const { return true; } + virtual bool can_output_linear_gamma() const { + return (image_format.gamma_curve == GAMMA_LINEAR || + image_format.gamma_curve == GAMMA_sRGB); + } std::string output_fragment_shader();