From b9deed059fe4a8d33911464268910822235098b2 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 18 Oct 2016 07:31:22 -0600 Subject: layers:Fix Val IDs msg calls for Two CmdCopyImage checks were looking up the incorrect strings for their error enums. Use the correct strings. --- layers/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/image.cpp b/layers/image.cpp index 2f822dff..383693d1 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -883,7 +883,7 @@ bool PreCallValidateCmdCopyImage(VkCommandBuffer command_buffer, VkImage src_ima skip |= log_msg(device_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, reinterpret_cast(command_buffer), __LINE__, VALIDATION_ERROR_01175, "IMAGE", "%s. %s", - ss.str().c_str(), validation_error_map[VALIDATION_ERROR_01176]); + ss.str().c_str(), validation_error_map[VALIDATION_ERROR_01175]); } // The destination region specified by a given element of regions must be a region that is contained within dst_image @@ -930,7 +930,7 @@ bool PreCallValidateCmdCopyImage(VkCommandBuffer command_buffer, VkImage src_ima skip |= log_msg(device_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, reinterpret_cast(command_buffer), __LINE__, VALIDATION_ERROR_01184, "IMAGE", "%s. %s", str, - validation_error_map[VALIDATION_ERROR_01176]); + validation_error_map[VALIDATION_ERROR_01184]); } } } -- cgit v1.2.3