layers: Improve wording of attachment-index-out-of-range error
authorChris Forbes <chrisforbes@google.com>
Tue, 15 Nov 2016 19:58:32 +0000 (08:58 +1300)
committerChris Forbes <chrisforbes@google.com>
Sun, 20 Nov 2016 22:07:35 +0000 (11:07 +1300)
This wasn't correct for the == case.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/core_validation.cpp

index 64748fc..a1b146b 100644 (file)
@@ -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;