Drawable Renderer (#1570), [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-05-31 15:06:04 +00:00
committed by Bart Louwers
parent f45437b9ab
commit 87189d9534

View File

@@ -212,10 +212,7 @@ gfx::AttributeBindingArray UploadPass::buildAttributeBindings(
std::shared_ptr<gfx::Texture2D> UploadPass::createTexture2D(const PremultipliedImage& image) {
auto tex = std::make_shared<gl::Texture2D>(commandEncoder.context);
tex->setSize(image.size)
.setFormat(gfx::TexturePixelType::RGBA,
gfx::TextureChannelDataType::UnsignedByte)
.create();
tex->setSize(image.size).setFormat(gfx::TexturePixelType::RGBA, gfx::TextureChannelDataType::UnsignedByte).create();
tex->upload(image, *this);
return tex;
}