Vulkan: Fix our use of dual source blending, re-enable if available.

This commit is contained in:
Henrik Rydgard 2016-03-19 01:57:13 +01:00
parent add506a0d3
commit 966cb89d41
2 changed files with 3 additions and 3 deletions

View file

@ -644,7 +644,7 @@ VkResult VulkanContext::CreateDevice(int physical_device) {
// Enable a few safe ones if they are available.
if (featuresAvailable_.dualSrcBlend) {
// featuresEnabled_.dualSrcBlend = true;
featuresEnabled_.dualSrcBlend = true;
}
if (featuresAvailable_.largePoints) {
featuresEnabled_.largePoints = true;

View file

@ -48,8 +48,8 @@ static const VkBlendFactor vkBlendFactorLookup[(size_t)BlendFactor::COUNT] = {
VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR,
VK_BLEND_FACTOR_CONSTANT_ALPHA,
VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA,
VK_BLEND_FACTOR_SRC1_COLOR,
VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR,
VK_BLEND_FACTOR_SRC1_ALPHA,
VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA,
VK_BLEND_FACTOR_MAX_ENUM,
};