|
@@ -5589,7 +5589,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
texture.needsUpdate = false;
|
|
texture.needsUpdate = false;
|
|
|
|
|
|
- if ( texture.onUpdate ) texture.onUpdate();
|
|
|
|
|
|
+ if ( texture.onUpdate ) texture.onUpdate( texture );
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
@@ -5743,7 +5743,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
texture.needsUpdate = false;
|
|
texture.needsUpdate = false;
|
|
|
|
|
|
- if ( texture.onUpdate ) texture.onUpdate();
|
|
|
|
|
|
+ if ( texture.onUpdate ) texture.onUpdate( texture );
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|