X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbackends%2Fvulkan%2Fcommands_backend.cpp;fp=source%2Fbackends%2Fvulkan%2Fcommands_backend.cpp;h=5de0f090a9d774aa7e6c8d76d6dc4ebcf7bc5dd8;hb=fcc065736e303088ef121c554318e0cc028a0666;hp=9f53f1ce56f172a060e91bd3cfb102e5c4613c1e;hpb=3d6f8d2781beb692e11488c34871ec62174e58df;p=libs%2Fgl.git diff --git a/source/backends/vulkan/commands_backend.cpp b/source/backends/vulkan/commands_backend.cpp index 9f53f1ce..5de0f090 100644 --- a/source/backends/vulkan/commands_backend.cpp +++ b/source/backends/vulkan/commands_backend.cpp @@ -10,7 +10,6 @@ #include "rect.h" #include "renderpass.h" #include "semaphore.h" -#include "swapchaintexture.h" #include "vulkan.h" using namespace std; @@ -92,12 +91,7 @@ void VulkanCommands::begin_render_pass(bool clear, const ClearValue *clear_value if(!primary_buffer) begin_buffer(0); - fb_is_swapchain = false; - unsigned n_attachments = framebuffer->get_format().size(); - for(unsigned i=0; (!fb_is_swapchain && i(framebuffer->get_attachment(i))) - fb_is_swapchain = true; - + fb_is_swapchain = framebuffer->is_presentable(); framebuffer->refresh(); RenderPass render_pass;