diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-13 16:53:31 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-16 06:04:43 +0100 |
commit | 7f0ef81e11fc3d5c2665b5a50a4aba1715071cae (patch) | |
tree | c2d7142487f87d24373f55268efaa849a4c381ec | |
parent | 927f48d289d1296e4c7f0995c0f2e6149374efdb (diff) | |
download | gtk+-7f0ef81e11fc3d5c2665b5a50a4aba1715071cae.tar.gz |
vulkan: Our data is premultiplied, don't pretend it isn't
If the backend can't do premultiplied alpha, better make the backend treat
-rw-r--r-- | gdk/gdkvulkancontext.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index 83d5047a80..3cd70dd868 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -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 */ |