X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fcommands_backend.cpp;h=d55a4dfdbad3095bc253f57820f9bfa37a10c775;hb=2a2917f41f02fa12e9354616d76bf45c9b5bf3e6;hp=6f5703f60d1c98ac7e9563dc8360638d082b11fb;hpb=e4ae14435fa93ac1bcb13c6838b0ad3c923c8fde;p=libs%2Fgl.git diff --git a/source/backends/vulkan/commands_backend.cpp b/source/backends/vulkan/commands_backend.cpp index 6f5703f6..d55a4dfd 100644 --- a/source/backends/vulkan/commands_backend.cpp +++ b/source/backends/vulkan/commands_backend.cpp @@ -85,7 +85,7 @@ void VulkanCommands::begin_render_pass(bool clear, const ClearValue *clear_value if(dynamic_cast(framebuffer->get_attachment(i))) to_present = true; if(!to_present) - framebuffer->synchronize(clear); + framebuffer->prepare_image_layouts(clear); VkRenderPass render_pass = device.get_pipeline_cache().get_render_pass(framebuffer->get_format(), clear, !clear_values, to_present); framebuffer->refresh();