X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.h;h=39419b1954fe5125fdd43386ca360a691c3f25f4;hp=1820eafda24c56248fcaa80b3af73caa7172d507;hb=58094bb7c80300a2f67a7558d755abf5705c57df;hpb=5718299276a6966eddc2f3fb5948a6dd1bbdef90 diff --git a/flat_input.h b/flat_input.h index 1820eaf..39419b1 100644 --- a/flat_input.h +++ b/flat_input.h @@ -18,8 +18,9 @@ public: // TODO: Check that we actually have the required extension. virtual bool can_output_linear_gamma() const { - return (image_format.gamma_curve == GAMMA_LINEAR || - image_format.gamma_curve == GAMMA_sRGB); + return (type == GL_UNSIGNED_BYTE && + (image_format.gamma_curve == GAMMA_LINEAR || + image_format.gamma_curve == GAMMA_sRGB)); } std::string output_fragment_shader();