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());
}
if (lua_pcall(L, 0, 0, 0) != 0) {
fprintf(stderr, "error running chain setup callback: %s\n", lua_tostring(L, -1));
abort();
- }
+ }
assert(lua_gettop(L) == 0);
// The theme can't (or at least shouldn't!) call connect_signal() on
lua_pop(L, 1);
assert(lua_gettop(L) == 0);
return ret;
-}
+}
int Theme::map_signal(int signal_num)
{