Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Oct 23, 2015
1 parent a49b6fd commit d47184e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Renderer/ShaderSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ define([
}

ShaderSource.createPickVertexShaderSource = function(vertexShaderSource) {
var renamedVS = vertexShaderSource.replace(/void\s+main\s*\(\s*(?:void)?\s*\)/g, 'void czm_old_main()');
var renamedVS = ShaderSource.replaceMain(vertexShaderSource, 'void czm_old_main()');
var pickMain = 'attribute vec4 pickColor; \n' +
'varying vec4 czm_pickColor; \n' +
'void main() \n' +
Expand All @@ -343,7 +343,7 @@ define([
};

ShaderSource.createPickFragmentShaderSource = function(fragmentShaderSource, pickColorQualifier) {
var renamedFS = fragmentShaderSource.replace(/void\s+main\s*\(\s*(?:void)?\s*\)/g, 'void czm_old_main()');
var renamedFS = ShaderSource.replaceMain(fragmentShaderSource, 'void czm_old_main()');
var pickMain = pickColorQualifier + ' vec4 czm_pickColor; \n' +
'void main() \n' +
'{ \n' +
Expand Down

0 comments on commit d47184e

Please sign in to comment.