diff --git a/src/tz/gl/impl/vulkan/renderer2.cpp b/src/tz/gl/impl/vulkan/renderer2.cpp index 7cc2a5db5a..eaa6171553 100644 --- a/src/tz/gl/impl/vulkan/renderer2.cpp +++ b/src/tz/gl/impl/vulkan/renderer2.cpp @@ -1019,7 +1019,7 @@ namespace tz::gl // if 'no clear output' isn't specified, then we can say old layout is undefined, so we're guaranteed to be in colour attachment after. // after a present, we want this to be the case so this should work? - if(!options.contains(tz::gl::renderer_option::no_clear_output)) + if(!options.contains(tz::gl::renderer_option::no_clear_output) && renderer_output_manager::targets_window()) { record.transition_image_layout (vk2::VulkanCommand::TransitionImageLayout{