Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed Apr 20, 2022
1 parent 559c57a commit 74bbb61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 74bbb61

Please sign in to comment.