mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-compiler: Default to monochrome output when NO_COLOUR/NO_COLOR is set.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cc05e9c391
commit
0de7a2eeb5
5
README
5
README
@ -45,6 +45,11 @@ removed in the future versions of vkd3d.
|
|||||||
Some of debug variables are lists of elements. Elements must be separated by
|
Some of debug variables are lists of elements. Elements must be separated by
|
||||||
commas or semicolons.
|
commas or semicolons.
|
||||||
|
|
||||||
|
* NO_COLOR - this is an alias of NO_COLOUR.
|
||||||
|
|
||||||
|
* NO_COLOUR - when set, vkd3d-compiler will default to monochrome output,
|
||||||
|
even when the output supports colour.
|
||||||
|
|
||||||
* VKD3D_CONFIG - a list of options that change the behavior of libvkd3d.
|
* VKD3D_CONFIG - a list of options that change the behavior of libvkd3d.
|
||||||
* vk_debug - enables Vulkan debug extensions.
|
* vk_debug - enables Vulkan debug extensions.
|
||||||
|
|
||||||
|
@ -674,7 +674,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.explicit_colour && has_colour(output))
|
if (!options.explicit_colour && !getenv("NO_COLOUR") && !getenv("NO_COLOR") && has_colour(output))
|
||||||
options.formatting |= VKD3D_SHADER_COMPILE_OPTION_FORMATTING_COLOUR;
|
options.formatting |= VKD3D_SHADER_COMPILE_OPTION_FORMATTING_COLOUR;
|
||||||
add_compile_option(&options, VKD3D_SHADER_COMPILE_OPTION_FORMATTING, options.formatting);
|
add_compile_option(&options, VKD3D_SHADER_COMPILE_OPTION_FORMATTING, options.formatting);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user