summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/buckets
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/buckets')
-rw-r--r--src/mbgl/renderer/buckets/hillshade_bucket.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/renderer/buckets/hillshade_bucket.cpp b/src/mbgl/renderer/buckets/hillshade_bucket.cpp
index c2628273dc..cf9cc61e46 100644
--- a/src/mbgl/renderer/buckets/hillshade_bucket.cpp
+++ b/src/mbgl/renderer/buckets/hillshade_bucket.cpp
@@ -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;
}