diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-11-16 08:58:32 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-11-21 11:07:35 +1300 |
| commit | e2cbc0a8690a29590488b76a3f68e6ed5bd5e904 (patch) | |
| tree | a6794fcb16bdb8f4bdf93572b6c46b387dd8af08 /layers/core_validation.cpp | |
| parent | 0af51ea303120df0f130993941ae48836b18461a (diff) | |
| download | usermoji-e2cbc0a8690a29590488b76a3f68e6ed5bd5e904.tar.xz | |
layers: Improve wording of attachment-index-out-of-range error
This wasn't correct for the == case.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 64748fc8..a1b146b0 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; |
