diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-06-01 18:12:44 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-01 18:12:44 +0200 |
commit | 67bbcd5334a15f659952514b15275892900fd95b (patch) | |
tree | 701b4fc09efdd6d20addc07c5ef4c36b2693009f /src/renderer/painter_fill.cpp | |
parent | 1be972eb15fb53fa07b3154fb93bbcf742888b37 (diff) | |
download | qtlocation-mapboxgl-67bbcd5334a15f659952514b15275892900fd95b.tar.gz |
allow setting prerender state with a function too
Diffstat (limited to 'src/renderer/painter_fill.cpp')
-rw-r--r-- | src/renderer/painter_fill.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/renderer/painter_fill.cpp b/src/renderer/painter_fill.cpp index 0d3a415115..fd5b1a334f 100644 --- a/src/renderer/painter_fill.cpp +++ b/src/renderer/painter_fill.cpp @@ -152,10 +152,8 @@ void Painter::renderFill(FillBucket& bucket, const std::string& layer_name, cons : defaultFillProperties; if (!properties.enabled) return; - if (properties.prerender) { + if (properties.prerender && properties.getPrerender(id.z)) { if (pass == Translucent) { - - // Buffer value around the 0..4096 extent that will be drawn into the 256x256 pixel // texture. We later scale the texture so that the actual bounds will align with this // tile's bounds. The reason we do this is so that the |