mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[vulkan] Set a reasonable default for color blend
Vulkan requires color blend state is only for color attachments (ignored otherwise), but it shouldn't be necessary to actually specify the blend state and instead have it default to something reasonable. Unfortunately, colorWriteMask affects the output even if blending is disabled, so it must be initialized to something reasonable (r|g|b|a) for when the default is used.
This commit is contained in:
parent
105bbbc0f2
commit
ed74a6420b
1 changed files with 1 additions and 0 deletions
|
@ -441,6 +441,7 @@
|
|||
.string = {
|
||||
name = $name;
|
||||
layout = $auto;
|
||||
blend = "(VkPipelineColorBlendAttachmentState) { .colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT }"
|
||||
};
|
||||
.dictionary = {
|
||||
.parse = auto;
|
||||
|
|
Loading…
Reference in a new issue