From 68a442c690773a61c0e4dac6d2d1488076c3dda4 Mon Sep 17 00:00:00 2001 From: Dominik Witczak Date: Wed, 2 Mar 2016 17:24:56 +0100 Subject: [PATCH] layers: GL156 Ignore pQueueFamilyIndices if exclusive sharing mode is requested --- layers/draw_state.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/draw_state.h b/layers/draw_state.h index 85eb8362..9b071acb 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; -- 2.34.1