]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/framebuffer_backend.cpp
Store the number of mipmap levels in the Texture base class
[libs/gl.git] / source / backends / vulkan / framebuffer_backend.cpp
index 2ebd8b33d067fb6844a237e7bf6e38995d7b446b..8ef69ecd72a206c87db8b3997afecc250d7dc063 100644 (file)
@@ -85,7 +85,7 @@ void VulkanFramebuffer::update(unsigned) const
 void VulkanFramebuffer::prepare_image_layouts(bool discard) const
 {
        for(const Framebuffer::Attachment &a: static_cast<const Framebuffer *>(this)->attachments)
-               a.tex->change_layout(0, a.level, get_vulkan_attachment_layout(get_components(a.tex->get_format())), discard);
+               a.tex->change_layout(a.level, get_vulkan_attachment_layout(get_components(a.tex->get_format())), discard);
 }
 
 void VulkanFramebuffer::set_debug_name(const string &name)