diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | 7751e4be762857b91f7dfa5c10f0f024aebd0079 (patch) | |
tree | 0b3aa111a854ec3a0e9eb8362f1efdfbdab22482 /src/mbgl/renderer/layers | |
parent | c92be2965c8c8f36aed1cf86d8e44915855b4806 (diff) | |
download | qtlocation-mapboxgl-7751e4be762857b91f7dfa5c10f0f024aebd0079.tar.gz |
[core] Fix google-default-arguments errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/renderer/layers')
-rw-r--r-- | src/mbgl/renderer/layers/render_hillshade_layer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/renderer/layers/render_hillshade_layer.cpp b/src/mbgl/renderer/layers/render_hillshade_layer.cpp index a937c857cc..f3ac5c2a4f 100644 --- a/src/mbgl/renderer/layers/render_hillshade_layer.cpp +++ b/src/mbgl/renderer/layers/render_hillshade_layer.cpp @@ -140,7 +140,8 @@ void RenderHillshadeLayer::render(PaintParameters& parameters) { assert(bucket.dem); const uint16_t stride = bucket.getDEMData().stride; const uint16_t tilesize = bucket.getDEMData().dim; - auto view = parameters.context.createOffscreenTexture({ tilesize, tilesize }); + auto view = parameters.context.createOffscreenTexture({tilesize, tilesize}, + gfx::TextureChannelDataType::UnsignedByte); auto renderPass = parameters.encoder->createRenderPass( "hillshade prepare", { *view, Color{ 0.0f, 0.0f, 0.0f, 0.0f }, {}, {} }); |