Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Hillshade bucket fix mapbox/mapbox-gl-native-ios#240
Browse files Browse the repository at this point in the history
  • Loading branch information
astojilj committed Apr 1, 2020
1 parent 9de0bac commit 881d5da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mbgl/renderer/buckets/hillshade_bucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ void HillshadeBucket::upload(gfx::UploadPass& uploadPass) {
return;
}


const PremultipliedImage* image = demdata.getImage();
dem = uploadPass.createTexture(*image);

if (!segments.empty()) {
if (!vertices.empty()) {
vertexBuffer = uploadPass.createVertexBuffer(std::move(vertices));
}
if (!indices.empty()) {
indexBuffer = uploadPass.createIndexBuffer(std::move(indices));
}

uploaded = true;
}

Expand Down

0 comments on commit 881d5da

Please sign in to comment.