Skip to content

Commit

Permalink
Merge pull request #3987 from AnalyticalGraphicsInc/linux-2D
Browse files Browse the repository at this point in the history
Fix missing tiles on Linux after switching to 3D from 2D
  • Loading branch information
pjcozzi committed Jun 1, 2016
2 parents 17d295a + 557d89b commit 39aa2fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Change Log
* Added `Matrix4.computeView`.
* Added `CullingVolume.fromBoundingSphere`.
* Added `debugShowShadowVolume` to `GroundPrimitive`.
* Fix issue with disappearing tiles on Linux. [#3889](https://github.com/AnalyticalGraphicsInc/cesium/issues/3889)

### 1.21 - 2016-05-02

Expand Down
7 changes: 2 additions & 5 deletions Source/Scene/GlobeSurfaceShaderSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ define([

function getPositionMode(sceneMode) {
var getPosition3DMode = 'vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPosition3DMode(position, height, textureCoordinates); }';
var getPosition2DMode = 'vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPosition2DMode(position, height, textureCoordinates); }';
var getPositionColumbusViewMode = 'vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPositionColumbusViewMode(position, height, textureCoordinates); }';
var getPositionColumbusViewAnd2DMode = 'vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPositionColumbusViewMode(position, height, textureCoordinates); }';
var getPositionMorphingMode = 'vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPositionMorphingMode(position, height, textureCoordinates); }';

var positionMode;
Expand All @@ -46,10 +45,8 @@ define([
positionMode = getPosition3DMode;
break;
case SceneMode.SCENE2D:
positionMode = getPosition2DMode;
break;
case SceneMode.COLUMBUS_VIEW:
positionMode = getPositionColumbusViewMode;
positionMode = getPositionColumbusViewAnd2DMode;
break;
case SceneMode.MORPHING:
positionMode = getPositionMorphingMode;
Expand Down

0 comments on commit 39aa2fc

Please sign in to comment.