mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
vkswapper: add inherit support
Used on android
This commit is contained in:
parent
332f1742d2
commit
982e06ef87
1 changed files with 3 additions and 0 deletions
|
@ -777,6 +777,9 @@ _allocate_swapchain (GstVulkanSwapper * swapper, GstCaps * caps,
|
|||
} else if ((priv->surf_props.supportedCompositeAlpha &
|
||||
VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR) != 0) {
|
||||
alpha_flags = VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR;
|
||||
} else if ((priv->surf_props.supportedCompositeAlpha &
|
||||
VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR) != 0) {
|
||||
alpha_flags = VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR;
|
||||
} else {
|
||||
g_set_error (error, GST_VULKAN_ERROR,
|
||||
VK_ERROR_INITIALIZATION_FAILED,
|
||||
|
|
Loading…
Reference in a new issue