Changeset 28ea92f in opengl-game for vulkan-game.cpp
- Timestamp:
- Feb 14, 2021, 3:12:38 AM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 737c26a
- Parents:
- 4e2c709
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r4e2c709 r28ea92f 65 65 66 66 this->currentFrame = 0; 67 this->framebufferResized= false;67 shouldRecreateSwapChain = false; 68 68 69 69 this->object_VP_mats = {}; … … 812 812 case UI_EVENT_WINDOWRESIZE: 813 813 cout << "Window resize event detected" << endl; 814 framebufferResized= true;814 shouldRecreateSwapChain = true; 815 815 break; 816 816 case UI_EVENT_KEYDOWN: … … 1800 1800 VkResult result = vkQueuePresentKHR(presentQueue, &presentInfo); 1801 1801 1802 if (result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR || framebufferResized) {1803 framebufferResized= false;1802 if (result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR || shouldRecreateSwapChain) { 1803 shouldRecreateSwapChain = false; 1804 1804 recreateSwapChain(); 1805 1805 } else if (result != VK_SUCCESS) {
Note:
See TracChangeset
for help on using the changeset viewer.