Drawable Renderer (#1570), warnings

This commit is contained in:
Tim Sylvester
2023-05-05 10:14:54 -07:00
committed by Bart Louwers
parent 3bc013d3ac
commit af43611d2b
2 changed files with 3 additions and 4 deletions

View File

@@ -322,9 +322,9 @@ void RenderBackgroundLayer::update(const int32_t layerIndex,
builder->flush();
auto drawables = builder->clearDrawables();
if (!drawables.empty()) {
auto& drawable = drawables[0];
auto tileDrawables = builder->clearDrawables();
if (!tileDrawables.empty()) {
auto& drawable = tileDrawables[0];
drawable->setTileID(tileID);
result.first->second = drawable;
changes.emplace_back(std::make_unique<AddDrawableRequest>(std::move(drawable)));

View File

@@ -1,6 +1,5 @@
#pragma once
#include <mbgl/gfx/drawable.hpp>
#include <mbgl/gfx/drawable.hpp>
#include <mbgl/layout/layout.hpp>
#include <mbgl/renderer/change_request.hpp>
#include <mbgl/renderer/render_pass.hpp>