[core] RenderTile returns textures by const reference
This commit is contained in:
@@ -170,7 +170,7 @@ void RenderLineLayer::render(PaintParameters& parameters) {
|
||||
|
||||
} else if (!unevaluated.get<LinePattern>().isUndefined()) {
|
||||
const auto& linePatternValue = evaluated.get<LinePattern>().constantOr(Faded<std::basic_string<char>>{ "", ""});
|
||||
const Size& texsize = tile.getIconAtlasTexture()->size;
|
||||
const Size& texsize = tile.getIconAtlasTexture().size;
|
||||
|
||||
optional<ImagePosition> posA = tile.getPattern(linePatternValue.from);
|
||||
optional<ImagePosition> posB = tile.getPattern(linePatternValue.to);
|
||||
@@ -187,7 +187,7 @@ void RenderLineLayer::render(PaintParameters& parameters) {
|
||||
posA,
|
||||
posB,
|
||||
LinePatternProgram::TextureBindings{
|
||||
textures::image::Value{ tile.getIconAtlasTexture()->getResource(), gfx::TextureFilterType::Linear },
|
||||
textures::image::Value{ tile.getIconAtlasTexture().getResource(), gfx::TextureFilterType::Linear },
|
||||
});
|
||||
} else if (!unevaluated.get<LineGradient>().getValue().isUndefined()) {
|
||||
assert(colorRampTexture);
|
||||
|
||||
Reference in New Issue
Block a user