X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Ftheme.cpp;h=33fa114538d046cf5049c1cbf4b8fdba1d9b909b;hb=45a94bcaba587f636c1aa40485d02c5619109b20;hp=7226e82d55e50b6a7cd4dde12ed1a71ed84a5321;hpb=84eaa9862694f12f95d378abd6dd6b07a64c7b1d;p=nageru diff --git a/nageru/theme.cpp b/nageru/theme.cpp index 7226e82..33fa114 100644 --- a/nageru/theme.cpp +++ b/nageru/theme.cpp @@ -905,11 +905,7 @@ LiveInputWrapper::LiveInputWrapper( for (unsigned i = 0; i < num_inputs; ++i) { // We upload our textures ourselves, and Movit swaps // R and B in the shader if we specify BGRA, so lie and say RGBA. - if (global_flags.can_disable_srgb_decoder) { - rgba_inputs.push_back(new sRGBSwitchingFlatInput(inout_format, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, GL_UNSIGNED_BYTE, global_flags.width, global_flags.height)); - } else { - rgba_inputs.push_back(new NonsRGBCapableFlatInput(inout_format, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, GL_UNSIGNED_BYTE, global_flags.width, global_flags.height)); - } + rgba_inputs.push_back(new sRGBSwitchingFlatInput(inout_format, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, GL_UNSIGNED_BYTE, global_flags.width, global_flags.height)); chain->add_input(rgba_inputs.back()); }