From 90aea725e518bdeadfa2399c1903e9716182b9c1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Jun 2023 20:55:55 +0000 Subject: [PATCH] Drawable Renderer (#1570), [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mbgl/gl/texture2d.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/mbgl/gl/texture2d.cpp b/src/mbgl/gl/texture2d.cpp index d0b341420..7aeed519c 100644 --- a/src/mbgl/gl/texture2d.cpp +++ b/src/mbgl/gl/texture2d.cpp @@ -91,14 +91,14 @@ void Texture2D::createStorage(const void* data) noexcept { context.texture[0] = getTextureID(); updateSamplerConfiguration(); MBGL_CHECK_ERROR(glTexImage2D(GL_TEXTURE_2D, - 0, - Enum::to(pixelFormat), - size.width, - size.height, - 0, - Enum::to(pixelFormat), - Enum::to(channelType), - data)); + 0, + Enum::to(pixelFormat), + size.width, + size.height, + 0, + Enum::to(pixelFormat), + Enum::to(channelType), + data)); } void Texture2D::create() noexcept { @@ -208,8 +208,7 @@ void Texture2D::uploadSubRegion(const void* pixelData, const Size& size_, uint16 void Texture2D::upload() noexcept { if (image && image->valid()) { - setFormat(gfx::TexturePixelType::RGBA, - gfx::TextureChannelDataType::UnsignedByte); + setFormat(gfx::TexturePixelType::RGBA, gfx::TextureChannelDataType::UnsignedByte); upload(&(*image).data[0], image->size); image.reset(); }