From f671e517f7667c50ee9865267760a1fba26a0b6a Mon Sep 17 00:00:00 2001 From: Dustin Graves Date: Mon, 16 May 2016 18:35:55 -0600 Subject: layers: Fix transposed messages Fix parameter_validation::get_result_rescription utility function, which had the messages for VK_ERROR_DEVICE_LOST and VK_ERROR_INITIALIZATION_FAILED transposed. Change-Id: I47126389cbfafce663ec474fa04b899e6f2f663c --- layers/parameter_validation_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h index 1683f31f..effd0530 100644 --- a/layers/parameter_validation_utils.h +++ b/layers/parameter_validation_utils.h @@ -717,8 +717,8 @@ static std::string get_result_description(VkResult result) { case VK_INCOMPLETE: return "a return array was too small for the result"; case VK_ERROR_OUT_OF_HOST_MEMORY: return "a host memory allocation has failed"; case VK_ERROR_OUT_OF_DEVICE_MEMORY: return "a device memory allocation has failed"; - case VK_ERROR_INITIALIZATION_FAILED: return "the logical device has been lost"; - case VK_ERROR_DEVICE_LOST: return "initialization of an object has failed"; + case VK_ERROR_INITIALIZATION_FAILED: return "initialization of an object has failed"; + case VK_ERROR_DEVICE_LOST: return "the logical device has been lost"; case VK_ERROR_MEMORY_MAP_FAILED: return "mapping of a memory object has failed"; case VK_ERROR_LAYER_NOT_PRESENT: return "the specified layer does not exist"; case VK_ERROR_EXTENSION_NOT_PRESENT: return "the specified extension does not exist"; -- cgit v1.2.3