Skip to content

Commit

Permalink
Warnings (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSylvester authored Oct 20, 2023
1 parent 1a1c826 commit da45706
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/shaders/gl/drawable_hillshade_prepare.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void main() {
float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);
float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);
float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);
float e = getElevation(v_pos, 0.0);
//float e = getElevation(v_pos, 0.0);
float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);
float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);
float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);
Expand Down
2 changes: 1 addition & 1 deletion include/mbgl/shaders/gl/hillshade_prepare.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void main() {
float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);
float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);
float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);
float e = getElevation(v_pos, 0.0);
//float e = getElevation(v_pos, 0.0);
float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);
float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);
float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);
Expand Down
2 changes: 1 addition & 1 deletion include/mbgl/shaders/mtl/hillshade_prepare.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ half4 fragment fragmentMain(FragmentStage in [[stage_in]],
float b = getElevation(in.pos + float2(0, -epsilon.y), 0.0, image, image_sampler, drawable.unpack);
float c = getElevation(in.pos + float2(epsilon.x, -epsilon.y), 0.0, image, image_sampler, drawable.unpack);
float d = getElevation(in.pos + float2(-epsilon.x, 0), 0.0, image, image_sampler, drawable.unpack);
float e = getElevation(in.pos, 0.0, image, image_sampler, drawable.unpack);
//float e = getElevation(in.pos, 0.0, image, image_sampler, drawable.unpack);
float f = getElevation(in.pos + float2(epsilon.x, 0), 0.0, image, image_sampler, drawable.unpack);
float g = getElevation(in.pos + float2(-epsilon.x, epsilon.y), 0.0, image, image_sampler, drawable.unpack);
float h = getElevation(in.pos + float2(0, epsilon.y), 0.0, image, image_sampler, drawable.unpack);
Expand Down
5 changes: 4 additions & 1 deletion render-test/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,14 @@ void TestRunner::run(TestMetadata& metadata) {

// TODO: remove usage of std::codecvt_utf8
// https://github.com/maplibre/maplibre-native/issues/1269
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
static std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> cv;
#if defined(__clang__)
#pragma clang diagnostic pop

#endif
if (it == symbols.end()) {
symbols.push_back({tileId, box, placed, isIcon});
return;
Expand Down
2 changes: 1 addition & 1 deletion shaders/drawable.hillshade_prepare.fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void main() {
float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);
float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);
float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);
float e = getElevation(v_pos, 0.0);
//float e = getElevation(v_pos, 0.0);
float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);
float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);
float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);
Expand Down
2 changes: 1 addition & 1 deletion shaders/hillshade_prepare.fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void main() {
float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);
float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);
float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);
float e = getElevation(v_pos, 0.0);
//float e = getElevation(v_pos, 0.0);
float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);
float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);
float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);
Expand Down

0 comments on commit da45706

Please sign in to comment.