Changeset ce9dc9f in opengl-game for vulkan-game.cpp
- Timestamp:
- Jan 24, 2021, 6:15:32 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 8b823e7
- Parents:
- 3f32dfd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r3f32dfd rce9dc9f 293 293 check_vk_result(err); 294 294 295 err = vkDeviceWaitIdle(this->device); 296 check_vk_result(err); 295 if (vkDeviceWaitIdle(this->device) != VK_SUCCESS) { 296 throw runtime_error("failed to wait for device!"); 297 } 298 297 299 ImGui_ImplVulkan_DestroyFontUploadObjects(); 298 300 … … 1193 1195 1194 1196 void VulkanGame::cleanup() { 1195 // TODO: Should probably check the returned result 1196 vkDeviceWaitIdle(device); 1197 if (vkDeviceWaitIdle(device) != VK_SUCCESS) { 1198 throw runtime_error("failed to wait for device!"); 1199 } 1197 1200 1198 1201 ImGui_ImplVulkan_Shutdown(); … … 2120 2123 } 2121 2124 2122 vkDeviceWaitIdle(device); 2125 if (vkDeviceWaitIdle(device) != VK_SUCCESS) { 2126 throw runtime_error("failed to wait for device!"); 2127 } 2123 2128 2124 2129 cleanupSwapChain();
Note:
See TracChangeset
for help on using the changeset viewer.