renderer_vulkan: Fix warnings and cleanup

This commit is contained in:
GPUCode
2022-10-07 14:02:55 +03:00
parent 85df778785
commit 0bfaa035b9
21 changed files with 42 additions and 47 deletions

View File

@@ -2,7 +2,6 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#define VULKAN_HPP_NO_CONSTRUCTORS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/gtc/matrix_transform.hpp>
#include "common/assert.h"
@@ -942,7 +941,7 @@ void RendererVulkan::SwapBuffers() {
// Create swapchain if needed
if (swapchain.NeedsRecreation()) {
swapchain.Create(layout.width, layout.height, false);
swapchain.Create(layout.width, layout.height);
}
// Calling Submit will change the slot so get the required semaphores now