X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fframebuffer_backend.cpp;h=dcf63e9860c1b4c75beb71f3bdfdc53f64420ca2;hb=664421e9f9327f2c6ea5967930b386c142557e39;hp=4c68546f15ed322181aad3ef9c136f92c9892ff3;hpb=fcc065736e303088ef121c554318e0cc028a0666;p=libs%2Fgl.git diff --git a/source/backends/vulkan/framebuffer_backend.cpp b/source/backends/vulkan/framebuffer_backend.cpp index 4c68546f..dcf63e98 100644 --- a/source/backends/vulkan/framebuffer_backend.cpp +++ b/source/backends/vulkan/framebuffer_backend.cpp @@ -33,7 +33,7 @@ VulkanFramebuffer::~VulkanFramebuffer() dq.destroy(h); } -bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) +bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) const { const VulkanFunctions &vk = device.get_functions(); for(FrameAttachment a: fmt) @@ -130,6 +130,7 @@ void VulkanFramebuffer::update(unsigned mask) const RenderPass render_pass; render_pass.framebuffer = &self; + render_pass.to_present = is_presentable(); render_pass.update(device); VkFramebufferCreateInfo framebuffer_info = { };