[Vulkan] Use move instead of release to return ImmediateTexture

This commit is contained in:
Triang3l 2020-09-27 15:42:55 +03:00
parent 183269ba16
commit d78b2a9a93
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ std::unique_ptr<ImmediateTexture> VulkanImmediateDrawer::CreateTexture(
texture_uploads_pending_[texture->pending_upload_index_].texture =
texture.get();
}
return std::unique_ptr<ImmediateTexture>(texture.release());
return std::move(texture);
}
void VulkanImmediateDrawer::Begin(int render_target_width,