Skip to content

Commit

Permalink
fix change code after onBeforeCompile ( sharing old code )
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jul 10, 2018
1 parent b293519 commit c169b65
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 @@ -1471,6 +1471,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 c169b65

Please sign in to comment.