]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/pipelinestate_backend.cpp
Use correct to_present flag when creating framebuffers and pipelines
[libs/gl.git] / source / backends / vulkan / pipelinestate_backend.cpp
index 9c695b3d1a5d281abda8ccc0d8a2df4b1e60b775..ab5d3dd4cd8ca10a20342eb1b063a0c29c92b8bf 100644 (file)
@@ -166,6 +166,7 @@ void VulkanPipelineState::fill_graphics_creation_info(vector<char> &buffer) cons
        const FrameFormat &format = self.framebuffer->get_format();
        RenderPass render_pass;
        render_pass.framebuffer = self.framebuffer;
+       render_pass.to_present = self.framebuffer->is_presentable();
        render_pass.update(device);
 
        unsigned n_color_attachments = 0;