diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-06-19 23:01:56 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-06-19 23:01:59 -0400 |
| commit | a6e5b84d1fbfa976819645d8b7234d847756fc88 (patch) | |
| tree | 70e002ef5960da129feae7761e95413b71b0b0da /src/video_core/renderer_vulkan/wrapper.cpp | |
| parent | 0f7822acb17a8c2534792b074a6181abfb95ec69 (diff) | |
vulkan/wrapper: Remove noexcept from GetSurfaceCapabilitiesKHR()
Check() can throw an exception if the Vulkan result isn't successful.
We remove the check so that std::terminate isn't outright called and
allows for better debugging (should it ever actually fail).
Diffstat (limited to 'src/video_core/renderer_vulkan/wrapper.cpp')
| -rw-r--r-- | src/video_core/renderer_vulkan/wrapper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.cpp b/src/video_core/renderer_vulkan/wrapper.cpp index 2ce9b0626..42eff85d3 100644 --- a/src/video_core/renderer_vulkan/wrapper.cpp +++ b/src/video_core/renderer_vulkan/wrapper.cpp @@ -725,8 +725,7 @@ bool PhysicalDevice::GetSurfaceSupportKHR(u32 queue_family_index, VkSurfaceKHR s return supported == VK_TRUE; } -VkSurfaceCapabilitiesKHR PhysicalDevice::GetSurfaceCapabilitiesKHR(VkSurfaceKHR surface) const - noexcept { +VkSurfaceCapabilitiesKHR PhysicalDevice::GetSurfaceCapabilitiesKHR(VkSurfaceKHR surface) const { VkSurfaceCapabilitiesKHR capabilities; Check(dld->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physical_device, surface, &capabilities)); return capabilities; |
