Changeset ce9dc9f in opengl-game for vulkan-game.cpp


Ignore:
Timestamp:
Jan 24, 2021, 6:15:32 PM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
8b823e7
Parents:
3f32dfd
Message:

Remove all dependencies on VulkanH functions and structures from SDLGame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    r3f32dfd rce9dc9f  
    293293      check_vk_result(err);
    294294
    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
    297299      ImGui_ImplVulkan_DestroyFontUploadObjects();
    298300
     
    11931195
    11941196void 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   }
    11971200
    11981201   ImGui_ImplVulkan_Shutdown();
     
    21202123   }
    21212124
    2122    vkDeviceWaitIdle(device);
     2125   if (vkDeviceWaitIdle(device) != VK_SUCCESS) {
     2126      throw runtime_error("failed to wait for device!");
     2127   }
    21232128
    21242129   cleanupSwapChain();
Note: See TracChangeset for help on using the changeset viewer.