Changeset 484334e in opengl-game for vulkan-game.cpp
- Timestamp:
- Feb 14, 2021, 3:50:35 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 81869ef
- Parents:
- 7734042
- git-author:
- Dmitry Portnoy <dportnoy@…> (02/14/21 15:48:29)
- git-committer:
- Dmitry Portnoy <dportnoy@…> (02/14/21 15:50:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r7734042 r484334e 936 936 } 937 937 938 if (shouldRecreateSwapChain) { 939 gui->refreshWindowSize(); 940 941 int width = gui->getWindowWidth(); 942 int height = gui->getWindowHeight(); 943 if (width > 0 && height > 0) { 944 // TODO: This should be used if the min image count changes, presumably because a new surface was created 945 // with a different image count or something like that. Maybe I want to add code to query for a new min image count 946 // during swapchain recreation to take advantage of this 947 ImGui_ImplVulkan_SetMinImageCount(swapChainMinImageCount); 948 949 recreateSwapChain(); 950 951 imageIndex = 0; 952 shouldRecreateSwapChain = false; 953 } 954 } 955 938 956 currentScreen->renderUI(); 939 957
Note:
See TracChangeset
for help on using the changeset viewer.