aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Witczak <Dominik.Witczak@amd.com>2016-03-02 17:24:56 +0100
committerTobin Ehlis <tobine@google.com>2016-03-07 07:34:58 -0700
commit68a442c690773a61c0e4dac6d2d1488076c3dda4 (patch)
treef08cbe3e31ccf3dad1b8ec0bb2597e8aa4df6f56
parent845421ff83f54d9ff080fc5c771da469979e80b0 (diff)
downloadusermoji-68a442c690773a61c0e4dac6d2d1488076c3dda4.tar.xz
layers: GL156 Ignore pQueueFamilyIndices if exclusive sharing mode is requested
-rw-r--r--layers/draw_state.h3
1 files changed, 2 insertions, 1 deletions
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;