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

Commit

Permalink
Revert accidental commit "separate-segments2"
Browse files Browse the repository at this point in the history
This reverts commit dac376c.
  • Loading branch information
Dane Springmeyer committed Aug 22, 2019
1 parent dac376c commit 8ee9dd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mbgl/renderer/buckets/raster_bucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ void RasterBucket::upload(gfx::UploadPass& uploadPass) {
if (!texture) {
texture = 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 8ee9dd5

Please sign in to comment.