}
}
- if (updates[i].gamma && updates[i].gamma !=
- surface->public.gamma_correction) {
+ if (dc->debug.disable_color_module)
+ continue; /* skip below color updates */
+
+ if (updates[i].gamma &&
+ updates[i].gamma != surface->public.gamma_correction) {
if (surface->public.gamma_correction != NULL)
dc_gamma_release(surface->public.
gamma_correction);
}
if (updates[i].in_transfer_func &&
- updates[i].in_transfer_func !=
- surface->public.in_transfer_func) {
+ updates[i].in_transfer_func != surface->public.in_transfer_func) {
if (surface->public.in_transfer_func != NULL)
dc_transfer_func_release(
surface->public.
}
if (updates[i].out_transfer_func &&
- updates[i].out_transfer_func !=
- stream->public.out_transfer_func) {
+ updates[i].out_transfer_func != stream->public.out_transfer_func) {
if (stream->public.out_transfer_func != NULL)
dc_transfer_func_release(
stream->public.