File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -489,6 +489,11 @@ var PipelineManager = new Class({
489489 ) ;
490490 } ,
491491
492+ forceZero : function ( )
493+ {
494+ return ( this . current && this . current . forceZero ) ;
495+ } ,
496+
492497 /**
493498 * Sets the Multi Pipeline to be the currently bound pipeline.
494499 *
Original file line number Diff line number Diff line change @@ -1258,7 +1258,7 @@ var WebGLRenderer = new Class({
12581258 */
12591259 setTextureSource : function ( textureSource )
12601260 {
1261- if ( this . pipelines . current . forceZero )
1261+ if ( this . pipelines . forceZero ( ) )
12621262 {
12631263 this . setTextureZero ( textureSource . glTexture , true ) ;
12641264
@@ -1494,7 +1494,7 @@ var WebGLRenderer = new Class({
14941494 */
14951495 setTexture2D : function ( texture )
14961496 {
1497- if ( this . pipelines . current . forceZero )
1497+ if ( this . pipelines . forceZero ( ) )
14981498 {
14991499 this . setTextureZero ( texture , true ) ;
15001500
You can’t perform that action at this time.
0 commit comments