浏览代码

Vulkan fixes

luboslenco 2 周之前
父节点
当前提交
c88d2a20af
共有 1 个文件被更改,包括 2 次插入0 次删除
  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--;