summaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-09-27 12:03:04 +1300
committerChris Forbes <chrisforbes@google.com>2016-09-27 14:26:51 +1300
commit48a43d923a7b126a78770bd209d63902ffa0520a (patch)
tree998d06e979f6cf93f3b2a20fbade332454b8d4b0 /layers/core_validation.cpp
parent66a7318a24c9dd8162a6ae49fd62867a263d4402 (diff)
layers: Don't accidentally copy safe_VkFramebufferCreateInfo
This isn't cheap. Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 9cb0c515..961ccd13 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -10094,7 +10094,7 @@ static void deleteRenderPasses(layer_data *my_data) {
static bool VerifyFramebufferAndRenderPassLayouts(layer_data *dev_data, GLOBAL_CB_NODE *pCB, const VkRenderPassBeginInfo *pRenderPassBegin) {
bool skip_call = false;
const VkRenderPassCreateInfo *pRenderPassInfo = dev_data->renderPassMap[pRenderPassBegin->renderPass]->pCreateInfo;
- const safe_VkFramebufferCreateInfo framebufferInfo = dev_data->frameBufferMap[pRenderPassBegin->framebuffer]->createInfo;
+ auto const & framebufferInfo = dev_data->frameBufferMap[pRenderPassBegin->framebuffer]->createInfo;
if (pRenderPassInfo->attachmentCount != framebufferInfo.attachmentCount) {
skip_call |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__,
DRAWSTATE_INVALID_RENDERPASS, "DS", "You cannot start a render pass using a framebuffer "