diff options
author | Chris Loer <chris.loer@gmail.com> | 2018-02-21 15:48:51 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-02-26 14:23:01 -0800 |
commit | 91f6e09dadd09926508b88083fc3f5d9a8da9226 (patch) | |
tree | f5021826d5f858740cdc8fd054bf216125adf0a4 /src/mbgl/renderer | |
parent | d425ec72379791ea47f1088e0c28fdf238cfc736 (diff) | |
download | qtlocation-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.cpp | 2 |
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(); } |