background-opacity support

This commit is contained in:
John Firebaugh
2014-08-28 10:34:10 -07:00
parent e2c2ab843e
commit 9f734ee61d
7 changed files with 21 additions and 9 deletions

View File

@@ -626,7 +626,6 @@ void Map::renderLayers(std::shared_ptr<StyleLayerGroup> group) {
void Map::renderLayer(std::shared_ptr<StyleLayer> layer_desc, RenderPass pass, const Tile::ID* id, const mat4* matrix) {
if (layer_desc->type == StyleLayerType::Background) {
// This layer defines a background color/image.
if (pass == RenderPass::Translucent) return;
if (debug::renderTree) {
std::cout << std::string(indent * 4, ' ') << "- " << layer_desc->id << " ("