diff --git a/src/renderers/webgl/WebGLProgram.js b/src/renderers/webgl/WebGLProgram.js index 660810cbf5..7875a98cf4 100644 --- a/src/renderers/webgl/WebGLProgram.js +++ b/src/renderers/webgl/WebGLProgram.js @@ -839,7 +839,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) { if ( cachedUniforms === undefined ) { // Populates cachedUniforms and cachedAttributes - onFirstUse(); + onFirstUse.call( this ); } @@ -856,7 +856,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) { if ( cachedAttributes === undefined ) { // Populates cachedAttributes and cachedUniforms - onFirstUse(); + onFirstUse.call( this ); }