summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-02-21 15:48:51 -0800
committerChris Loer <chris.loer@mapbox.com>2018-02-26 14:23:01 -0800
commit91f6e09dadd09926508b88083fc3f5d9a8da9226 (patch)
treef5021826d5f858740cdc8fd054bf216125adf0a4 /src/mbgl/renderer
parentd425ec72379791ea47f1088e0c28fdf238cfc736 (diff)
downloadqtlocation-mapboxgl-91f6e09dadd09926508b88083fc3f5d9a8da9226.tar.gz
[core] Don't reuse heatmap render texture on viewport resize.
Fixes issue #11228.
Diffstat (limited to 'src/mbgl/renderer')
-rw-r--r--src/mbgl/renderer/layers/render_heatmap_layer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/layers/render_heatmap_layer.cpp b/src/mbgl/renderer/layers/render_heatmap_layer.cpp
index 0f9e3239ef..4f2e899220 100644
--- a/src/mbgl/renderer/layers/render_heatmap_layer.cpp
+++ b/src/mbgl/renderer/layers/render_heatmap_layer.cpp
@@ -67,7 +67,7 @@ void RenderHeatmapLayer::render(PaintParameters& parameters, RenderSource*) {
}
}
- if (!renderTexture) {
+ if (!parameters.context.supportsHalfFloatTextures || !renderTexture) {
renderTexture = OffscreenTexture(parameters.context, size, gl::TextureType::UnsignedByte);
renderTexture->bind();
}