From 4e68bc0b5305f8a12f995ff84775ce1f07f3b693 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 21 Jul 2016 21:54:43 +0200 Subject: [PATCH] CXX_BUILD fix --- gfx/common/vulkan_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index acad033225..953ce896f1 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -1846,7 +1846,9 @@ out: create_info.planeStackIndex = planes[best_plane].currentStackIndex; create_info.transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; create_info.globalAlpha = 1.0f; - create_info.alphaMode = alpha_mode; + /* TODO/FIXME - why is this cast needed for CXX_BUILD? Why is + * alpha_mode not just VkDisplayPlaneAlphaFlagBitsKHR to begin with? */ + create_info.alphaMode = (VkDisplayPlaneAlphaFlagBitsKHR)alpha_mode; create_info.imageExtent.width = *width; create_info.imageExtent.height = *height;