Skip to content

Commit

Permalink
wait for device to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerboa-app committed Sep 6, 2023
1 parent b55b0f4 commit 2260887
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/Renderer/vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ namespace Renderer

void drawFrame();

void finish(){ vkDeviceWaitIdle(device); }

private:

VkInstance instance;
Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class HelloTriangleApplication
glfwPollEvents();
renderer->drawFrame();
}

renderer->finish();
}

void cleanup()
Expand Down

0 comments on commit 2260887

Please sign in to comment.