Skip to content

Commit 883402d

Browse files
committed
Added forceZero method and used it
1 parent e29fc62 commit 883402d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/renderer/webgl/PipelineManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

src/renderer/webgl/WebGLRenderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)