Skip to content

Commit

Permalink
Vulkan: Allow non-opaque alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed May 27, 2023
1 parent cc359d7 commit f10e70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dawn/native/vulkan/SwapChainVk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ ResultOrError<SwapChain::Config> SwapChain::ChooseConfig(
config.transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;

config.alphaMode = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
#if !DAWN_PLATFORM_IS(ANDROID)
#if 0
DAWN_INVALID_IF(
(surfaceInfo.capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR) == 0,
"Vulkan SwapChain must support opaque alpha.");
Expand Down

0 comments on commit f10e70a

Please sign in to comment.