diff --git a/src/render/painter.js b/src/render/painter.js index a52176cfd5e..44ba21804d3 100644 --- a/src/render/painter.js +++ b/src/render/painter.js @@ -554,8 +554,7 @@ class Painter { this.opaquePassCutoff = 0; } - const isGlobe = this.transform.projection.name === 'globe'; - if (isGlobe && !this.globeSharedBuffers) { + if (this.transform.projection.name === 'globe' && !this.globeSharedBuffers) { this.globeSharedBuffers = new GlobeSharedBuffers(this.context); }