From e2cbc0a8690a29590488b76a3f68e6ed5bd5e904 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 16 Nov 2016 08:58:32 +1300 Subject: [PATCH] layers: Improve wording of attachment-index-out-of-range error This wasn't correct for the == case. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 64748fc..a1b146b 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -10324,7 +10324,7 @@ static bool ValidateAttachmentIndex(layer_data *dev_data, uint32_t attachment, u if (attachment >= attachment_count && attachment != VK_ATTACHMENT_UNUSED) { skip_call |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, DRAWSTATE_INVALID_ATTACHMENT_INDEX, "DS", - "CreateRenderPass: %s attachment %d cannot be greater than the total number of attachments %d.", + "CreateRenderPass: %s attachment %d must be less than the total number of attachments %d.", type, attachment, attachment_count); } return skip_call; -- 2.7.4