[Vulkan] Use move instead of release to return ImmediateTexture
This commit is contained in:
parent
183269ba16
commit
d78b2a9a93
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue