mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-04 01:34:32 +00:00 
			
		
		
		
	@@ -320,6 +320,7 @@ static void FramePresent(ImGui_ImplVulkanH_Window* wd)
 | 
				
			|||||||
    info.pImageIndices = &wd->FrameIndex;
 | 
					    info.pImageIndices = &wd->FrameIndex;
 | 
				
			||||||
    VkResult err = vkQueuePresentKHR(g_Queue, &info);
 | 
					    VkResult err = vkQueuePresentKHR(g_Queue, &info);
 | 
				
			||||||
    check_vk_result(err);
 | 
					    check_vk_result(err);
 | 
				
			||||||
 | 
					    wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void glfw_error_callback(int error, const char* description)
 | 
					static void glfw_error_callback(int error, const char* description)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -312,6 +312,7 @@ static void FramePresent(ImGui_ImplVulkanH_Window* wd)
 | 
				
			|||||||
    info.pImageIndices = &wd->FrameIndex;
 | 
					    info.pImageIndices = &wd->FrameIndex;
 | 
				
			||||||
    VkResult err = vkQueuePresentKHR(g_Queue, &info);
 | 
					    VkResult err = vkQueuePresentKHR(g_Queue, &info);
 | 
				
			||||||
    check_vk_result(err);
 | 
					    check_vk_result(err);
 | 
				
			||||||
 | 
					    wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main(int, char**)
 | 
					int main(int, char**)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user