Hillshade bucket fix https://github.com/mapbox/mapbox-gl-native-ios/issues/240
Fixes: https://github.com/mapbox/mapbox-gl-native-ios/issues/240
This commit is contained in:
committed by
Aleksandar Stojiljković
parent
9de0bacf7d
commit
881d5dab6a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user