From: Dominik Witczak Date: Wed, 2 Mar 2016 16:24:56 +0000 (+0100) Subject: layers: GL156 Ignore pQueueFamilyIndices if exclusive sharing mode is requested X-Git-Tag: upstream/1.1.92~3655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68a442c690773a61c0e4dac6d2d1488076c3dda4;p=platform%2Fupstream%2FVulkan-Tools.git layers: GL156 Ignore pQueueFamilyIndices if exclusive sharing mode is requested --- diff --git a/layers/draw_state.h b/layers/draw_state.h index 85eb836..9b071ac 100644 --- a/layers/draw_state.h +++ b/layers/draw_state.h @@ -701,7 +701,8 @@ typedef struct _SWAPCHAIN_NODE { createInfo(*pCreateInfo), pQueueFamilyIndices(NULL) { - if (pCreateInfo->queueFamilyIndexCount) { + if (pCreateInfo->queueFamilyIndexCount && + pCreateInfo->imageSharingMode == VK_SHARING_MODE_CONCURRENT) { pQueueFamilyIndices = new uint32_t[pCreateInfo->queueFamilyIndexCount]; memcpy(pQueueFamilyIndices, pCreateInfo->pQueueFamilyIndices, pCreateInfo->queueFamilyIndexCount*sizeof(uint32_t)); createInfo.pQueueFamilyIndices = pQueueFamilyIndices;