Changeset 8d96e95 in opengl-game for vulkan-game.cpp
- Timestamp:
- Feb 14, 2021, 6:37:24 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 6053b24
- Parents:
- 81869ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r81869ef r8d96e95 938 938 if (shouldRecreateSwapChain) { 939 939 gui->refreshWindowSize(); 940 941 int width = gui->getWindowWidth(); 942 int height = gui->getWindowHeight(); 943 if (width > 0 && height > 0) { 940 const bool isMinimized = gui->getWindowWidth() == 0 || gui->getWindowHeight() == 0; 941 942 if (!isMinimized) { 944 943 // TODO: This should be used if the min image count changes, presumably because a new surface was created 945 944 // with a different image count or something like that. Maybe I want to add code to query for a new min image count … … 965 964 966 965 ImGui_ImplVulkan_NewFrame(); 967 ImGui_ImplSDL2_NewFrame( this->window);966 ImGui_ImplSDL2_NewFrame(window); 968 967 ImGui::NewFrame(); 969 968 … … 994 993 995 994 gui->refreshWindowSize(); 996 997 const bool isMinimized = gui->getWindowWidth() <= 0 || gui->getWindowHeight() <= 0; 995 const bool isMinimized = gui->getWindowWidth() == 0 || gui->getWindowHeight() == 0; 998 996 999 997 if (!isMinimized) {
Note:
See TracChangeset
for help on using the changeset viewer.