Skip to content

Commit 6c5c574

Browse files
committed
HDRCubeTextureLoader: Fixed scope.
1 parent 18fef30 commit 6c5c574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/loaders/HDRCubeTextureLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro
102102
texture.generateMipmaps = ( texture.encoding !== THREE.RGBEEncoding );
103103
texture.anisotropy = 0;
104104

105-
var scope = this.hdrLoader;
105+
var scope = this;
106106

107107
var loaded = 0;
108108

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

116116
loaded ++;
117117

118-
var texData = scope._parser( buffer );
118+
var texData = scope.hdrLoader._parser( buffer );
119119

120120
if ( ! texData ) return;
121121

0 commit comments

Comments
 (0)