[UI] Remove pass-unfriendly UpdateTexture of ImmediateDrawer

This commit is contained in:
Triang3l
2020-09-20 20:34:22 +03:00
parent 183c7eee2b
commit fc55b1f81d
9 changed files with 275 additions and 271 deletions

View File

@@ -730,7 +730,7 @@ std::unique_ptr<ImmediateTexture> VulkanImmediateDrawer::CreateTexture(
}
if (data) {
UpdateTexture(texture.get(), data);
texture->Upload(data);
}
return std::unique_ptr<ImmediateTexture>(texture.release());
}
@@ -751,11 +751,6 @@ std::unique_ptr<ImmediateTexture> VulkanImmediateDrawer::WrapTexture(
return texture;
}
void VulkanImmediateDrawer::UpdateTexture(ImmediateTexture* texture,
const uint8_t* data) {
static_cast<VulkanImmediateTexture*>(texture)->Upload(data);
}
void VulkanImmediateDrawer::Begin(int render_target_width,
int render_target_height) {
auto device = context_->device();