diff --git a/VulkanTest b/VulkanTest index 0aa2d42..7f9664f 100755 Binary files a/VulkanTest and b/VulkanTest differ diff --git a/cve_pipeline.hpp b/cve_pipeline.hpp index 092b677..b7b02d1 100644 --- a/cve_pipeline.hpp +++ b/cve_pipeline.hpp @@ -26,7 +26,7 @@ namespace cve { ~CvePipeline(); CvePipeline(const CvePipeline&) = delete; - void operator=(const CvePipeline&) = delete; + CvePipeline& operator=(const CvePipeline&) = delete; void bind(VkCommandBuffer commandBuffer); static PipelineConfigInfo defaultPipelineConfigInfo(uint32_t width, uint32_t height); diff --git a/cve_swap_chain.cpp b/cve_swap_chain.cpp index 65cf606..a7e0d22 100644 --- a/cve_swap_chain.cpp +++ b/cve_swap_chain.cpp @@ -362,7 +362,7 @@ void CveSwapChain::createSyncObjects() { VkSurfaceFormatKHR CveSwapChain::chooseSwapSurfaceFormat( const std::vector &availableFormats) { for (const auto &availableFormat : availableFormats) { - if (availableFormat.format == VK_FORMAT_B8G8R8A8_UNORM && + if (availableFormat.format == VK_FORMAT_B8G8R8A8_SRGB && availableFormat.colorSpace == VK_COLOR_SPACE_SRGB_NONLINEAR_KHR) { return availableFormat; } diff --git a/cve_swap_chain.hpp b/cve_swap_chain.hpp index c6a0b58..cc10591 100644 --- a/cve_swap_chain.hpp +++ b/cve_swap_chain.hpp @@ -19,7 +19,7 @@ class CveSwapChain { ~CveSwapChain(); CveSwapChain(const CveSwapChain &) = delete; - void operator=(const CveSwapChain &) = delete; + CveSwapChain &operator=(const CveSwapChain &) = delete; VkFramebuffer getFrameBuffer(int index) { return swapChainFramebuffers[index]; } VkRenderPass getRenderPass() { return renderPass; } diff --git a/cve_window.cpp b/cve_window.cpp index f0d1c62..a2348fd 100644 --- a/cve_window.cpp +++ b/cve_window.cpp @@ -16,7 +16,7 @@ namespace cve { void CveWindow::initWindow() { glfwInit(); glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); - glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE); + glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); window = glfwCreateWindow(width, height, windowName.c_str(), nullptr, nullptr);