Skip to content

Commit 84e3b13

Browse files
authored
Dont attempt to log names of extensions as these change depending on the header used. (flutter#6949)
1 parent f804a1f commit 84e3b13

1 file changed

Lines changed: 3 additions & 23 deletions

File tree

vulkan/vulkan_interface.cc

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,10 @@ std::string VulkanResultToString(VkResult result) {
6666
return "VK_ERROR_INVALID_EXTERNAL_HANDLE";
6767
case VK_ERROR_OUT_OF_POOL_MEMORY:
6868
return "VK_ERROR_OUT_OF_POOL_MEMORY";
69-
70-
#if VK_HEADER_VERSION >= 63
71-
case VK_ERROR_NOT_PERMITTED_EXT:
72-
return "VK_ERROR_NOT_PERMITTED_EXT";
73-
#endif
74-
75-
#if VK_HEADER_VERSION >= 72
76-
case VK_ERROR_FRAGMENTATION_EXT:
77-
return "VK_ERROR_FRAGMENTATION_EXT";
78-
#endif
79-
80-
#if OS_FUCHSIA
81-
#if VK_KHR_external_memory
82-
case VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR:
83-
return "VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR";
84-
#elif VK_KHX_external_memory
85-
case VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX:
86-
return "VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX";
87-
#endif
88-
case VK_ERROR_OUT_OF_POOL_MEMORY_KHR:
89-
return "VK_ERROR_OUT_OF_POOL_MEMORY_KHR";
90-
#endif
69+
default:
70+
return "Unknown Error";
9171
}
92-
return "Unknown Error";
72+
return "";
9373
}
9474

9575
} // namespace vulkan

0 commit comments

Comments
 (0)