diff options
| author | Dustin Graves <dustin@lunarg.com> | 2016-05-16 18:35:55 -0600 |
|---|---|---|
| committer | Dustin Graves <dustin@lunarg.com> | 2016-05-17 10:22:27 -0600 |
| commit | f671e517f7667c50ee9865267760a1fba26a0b6a (patch) | |
| tree | 7685cdb3e1e1a7dd43433340eb2982337583210e | |
| parent | 5f2b281d47038e3debb1d6b240d6ea3618cf61d8 (diff) | |
| download | usermoji-f671e517f7667c50ee9865267760a1fba26a0b6a.tar.xz | |
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
| -rw-r--r-- | layers/parameter_validation_utils.h | 4 |
1 files 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"; |
