Skip to content

Commit

Permalink
Fix #7990
Browse files Browse the repository at this point in the history
and also similar case when globe shading is active.
  • Loading branch information
ppoulainpro authored Jul 15, 2019
1 parent 36303ac commit 73ef586
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Scene/GlobeSurfaceTileProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,13 @@ define([
--maxTextures;
}

if (frameState.shadowState.shadowsEnabled) {
--maxTextures;
}
if (defined(tileProvider.clippingPlanes)) {
--maxTextures;
}

var mesh = surfaceTile.renderedMesh;
var rtc = mesh.center;
var encoding = mesh.encoding;
Expand Down

0 comments on commit 73ef586

Please sign in to comment.