X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fcommands_backend.cpp;h=a5f2ceb5ad9dcd38789c14801cf0ca759a83b2ce;hp=c2c86307f8bb668d3a3d8d13f06d050ae8e6bab6;hb=f4f81f1d86d50b29b9a44b237f67c6f5ad8f0523;hpb=644b81d62660bafa702bfd7acedd3a0039aad993 diff --git a/source/backends/vulkan/commands_backend.cpp b/source/backends/vulkan/commands_backend.cpp index c2c86307..a5f2ceb5 100644 --- a/source/backends/vulkan/commands_backend.cpp +++ b/source/backends/vulkan/commands_backend.cpp @@ -76,7 +76,7 @@ void VulkanCommands::begin_render_pass(bool clear, const ClearValue *clear_value bool to_present = false; unsigned n_attachments = framebuffer->get_format().size(); for(unsigned i=0; i(framebuffer->VulkanFramebuffer::get_attachment(i))) + if(dynamic_cast(framebuffer->get_attachment(i))) to_present = true; VkRenderPass render_pass = device.get_pipeline_cache().get_render_pass(framebuffer->get_format(), clear, !clear_values, to_present);