Skip to content

Commit

Permalink
Eliminate double forward declaration of czm_computePosition.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Feb 26, 2014
1 parent 649f0d6 commit ba99c55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Scene/Primitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,11 @@ define([
var name = match[1];

var functionName = 'vec4 czm_compute' + name[0].toUpperCase() + name.substr(1) + '()';
forwardDecl += functionName + ';\n';

// Don't forward-declare czm_computePosition because computePosition.glsl already does.
if (functionName !== 'vec4 czm_computePosition()') {
forwardDecl += functionName + ';\n';
}

if (!primitive.allow3DOnly) {
attributes +=
Expand Down

0 comments on commit ba99c55

Please sign in to comment.