diff options
| author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-10-07 14:17:41 +0200 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-10-10 09:43:24 -0600 |
| commit | 8ec4fce371f1c2f0e153197f7111a81095e542a4 (patch) | |
| tree | b87ee0510e828d813b91948d0338a0bc64cb2cb3 | |
| parent | fa98137c566cb8eab9aec661c2fc48f22e610fb9 (diff) | |
| download | usermoji-8ec4fce371f1c2f0e153197f7111a81095e542a4.tar.xz | |
demos: Use correct type for alphaMode in display surface
alphaMode in VkDisplaySurfaceCreateInfoKHR is
VkDisplayPlaneAlphaFlagBitsKHR, not VkCompositeAlphaFlagBitsKHR.
| -rw-r--r-- | demos/cube.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c index 3d79b0e9..f9cca740 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -2945,8 +2945,8 @@ static VkResult demo_create_display_surface(struct demo *demo) { VkDisplayPlaneCapabilitiesKHR planeCaps; vkGetDisplayPlaneCapabilitiesKHR(demo->gpu, mode_props.displayMode, plane_index, &planeCaps); // Find a supported alpha mode - VkCompositeAlphaFlagBitsKHR alphaMode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR; - VkCompositeAlphaFlagBitsKHR alphaModes[4] = { + VkDisplayPlaneAlphaFlagBitsKHR alphaMode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR; + VkDisplayPlaneAlphaFlagBitsKHR alphaModes[4] = { VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR, VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR, VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR, |
