]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture_backend.cpp
Minor, largely cosmetic tweaks
[libs/gl.git] / source / backends / vulkan / texture_backend.cpp
index 4e2e82249dde43a951ecfb82741a92442d00072c..bf2692172c922295c835012ccc0637ab2d909aa8 100644 (file)
@@ -147,10 +147,11 @@ void VulkanTexture::generate_mipmap()
                                change_layout(i+1, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, true);
                        },
                        [this, i](VkCommandBuffer cmd_buf, VkBuffer, size_t){
+                               const Texture &self = *static_cast<const Texture *>(this);
                                const VulkanFunctions &vk = device.get_functions();
 
                                VkImageBlit region = { };
-                               region.srcSubresource.aspectMask = get_vulkan_aspect(get_components(static_cast<const Texture *>(this)->storage_fmt));
+                               region.srcSubresource.aspectMask = get_vulkan_aspect(get_components(self.storage_fmt));
                                region.srcSubresource.mipLevel = i;
                                region.srcSubresource.baseArrayLayer = 0;
                                region.srcSubresource.layerCount = 1;