vulkan: Our data is premultiplied, don't pretend it isn't

If the backend can't do premultiplied alpha, better make the backend treat
This commit is contained in:
Benjamin Otte 2018-03-13 16:53:31 +01:00
parent 927f48d289
commit 7f0ef81e11

View File

@ -276,8 +276,6 @@ gdk_vulkan_context_check_swapchain (GdkVulkanContext *context,
if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR)
composite_alpha = VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR;
else if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR)
composite_alpha = VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR;
else if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR)
{
/* let's hope the backend knows what it's doing */