Skip to content

Commit

Permalink
HDRCubeTextureLoader: Fixed scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Nov 30, 2018
1 parent 18fef30 commit 6c5c574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/js/loaders/HDRCubeTextureLoader.js
Expand Up @@ -102,7 +102,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro
texture.generateMipmaps = ( texture.encoding !== THREE.RGBEEncoding );
texture.anisotropy = 0;

var scope = this.hdrLoader;
var scope = this;

var loaded = 0;

Expand All @@ -115,7 +115,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro

loaded ++;

var texData = scope._parser( buffer );
var texData = scope.hdrLoader._parser( buffer );

if ( ! texData ) return;

Expand Down

0 comments on commit 6c5c574

Please sign in to comment.