X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.h;h=2e14488ea7d983da1cad04ea6a31fb99d4b06fb3;hp=3bcdc76d61a46a4555e7f8ab1b822ff101dc6efa;hb=fdad0932f08649e69e824ee73a787671a5bc93a5;hpb=65d1c2910d0042649fc8ace11636516f87bd1f48 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();