luboslenco hai 2 semanas
pai
achega
c88d2a20af
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      base/sources/backends/vulkan_gpu.c

+ 2 - 0
base/sources/backends/vulkan_gpu.c

@@ -1198,7 +1198,9 @@ void gpu_present_internal() {
 	};
 	vkBeginCommandBuffer(command_buffer, &begin_info);
 
+	// acquire_next_image(); // Breaks window resize
 	framebuffer_acquired = false;
+	framebuffer_index = (framebuffer_index + 1) % GPU_FRAMEBUFFER_COUNT;
 
 	while (buffers_to_destroy_count > 0) {
 		buffers_to_destroy_count--;