[core] Don't reuse heatmap render texture on viewport resize.

Fixes issue #11228.
This commit is contained in:
Chris Loer
2018-02-21 15:48:51 -08:00
committed by Chris Loer
parent 278cd580fc
commit b79a1cc82e

View File

@@ -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();
}