Skip to content

Commit

Permalink
Merge pull request #14442 from sunag/dev-fix-onBeforeCompile
Browse files Browse the repository at this point in the history
fix change code after onBeforeCompile ( sharing old code )
  • Loading branch information
mrdoob committed Jul 26, 2018
2 parents e78b8cf + c169b65 commit b43193e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,8 @@ function WebGLRenderer( parameters ) {

material.onBeforeCompile( materialProperties.shader, _this );

code = programCache.getProgramCode( material, parameters );

program = programCache.acquireProgram( material, materialProperties.shader, parameters, code );

materialProperties.program = program;
Expand Down

0 comments on commit b43193e

Please sign in to comment.