Skip to content

Commit

Permalink
Merge pull request #3798 from AnalyticalGraphicsInc/fix-ie-failures
Browse files Browse the repository at this point in the history
Fix test failures in IE
  • Loading branch information
lilleyse committed Apr 1, 2016
2 parents 93b0e35 + 8aec75e commit e49fb89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ define([
var projectionMatrix = camera.frustum.projectionMatrix;

var x = camera.positionWC.y;
var eyePoint = Cartesian3.fromElements(Math.sign(x) * maxCoord.x - x, 0.0, -camera.positionWC.x, scratch2DViewportEyePoint);
var eyePoint = Cartesian3.fromElements(CesiumMath.sign(x) * maxCoord.x - x, 0.0, -camera.positionWC.x, scratch2DViewportEyePoint);
var windowCoordinates = Transforms.pointToGLWindowCoordinates(projectionMatrix, viewportTransformation, eyePoint, scratch2DViewportWindowCoords);

windowCoordinates.x = Math.floor(windowCoordinates.x);
Expand Down
2 changes: 1 addition & 1 deletion Source/Scene/SceneTransforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ define([
var projectionMatrix = camera.frustum.projectionMatrix;

var x = camera.positionWC.y;
var eyePoint = Cartesian3.fromElements(Math.sign(x) * maxCoord.x - x, 0.0, -camera.positionWC.x);
var eyePoint = Cartesian3.fromElements(CesiumMath.sign(x) * maxCoord.x - x, 0.0, -camera.positionWC.x);
var windowCoordinates = Transforms.pointToGLWindowCoordinates(projectionMatrix, viewportTransformation, eyePoint);

if (x === 0.0 || windowCoordinates.x <= 0.0 || windowCoordinates.x >= canvas.clientWidth) {
Expand Down

0 comments on commit e49fb89

Please sign in to comment.