Skip to content

Commit

Permalink
Remove unneeded shader checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jan 2, 2019
1 parent 56b63d1 commit 2616eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Scene/GroundPolylinePrimitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ define([

function updateAndQueueCommand(groundPolylinePrimitive, command, frameState, modelMatrix, cull, boundingVolume, debugShowBoundingVolume) {
// Use derived appearance command for morph and 2D
if (frameState.mode === SceneMode.MORPHING && command.shaderProgram !== groundPolylinePrimitive._spMorph) {
if (frameState.mode === SceneMode.MORPHING) {
command = command.derivedCommands.colorMorph;
} else if (frameState.mode !== SceneMode.SCENE3D && command.shaderProgram !== groundPolylinePrimitive._sp2D) {
} else if (frameState.mode !== SceneMode.SCENE3D) {
command = command.derivedCommands.color2D;
}
command.modelMatrix = modelMatrix;
Expand Down

0 comments on commit 2616eee

Please sign in to comment.