File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1086,6 +1086,10 @@ var WebGLRenderer = new Class({
10861086 width = framebuffer . renderTexture . width ;
10871087 height = framebuffer . renderTexture . height ;
10881088 }
1089+ else
1090+ {
1091+ this . flush ( ) ;
1092+ }
10891093
10901094 gl . bindFramebuffer ( gl . FRAMEBUFFER , framebuffer ) ;
10911095
@@ -1704,16 +1708,19 @@ var WebGLRenderer = new Class({
17041708 this . setBlendMode ( child . blendMode ) ;
17051709 }
17061710
1707- if ( child . mask )
1711+ var mask = child . mask ;
1712+
1713+ if ( mask )
17081714 {
1709- child . mask . preRenderWebGL ( this , child , camera ) ;
1710- }
1715+ mask . preRenderWebGL ( this , child , camera ) ;
17111716
1712- child . renderWebGL ( this , child , interpolationPercentage , camera ) ;
1717+ child . renderWebGL ( this , child , interpolationPercentage , camera ) ;
17131718
1714- if ( child . mask )
1719+ mask . postRenderWebGL ( this , child ) ;
1720+ }
1721+ else
17151722 {
1716- child . mask . postRenderWebGL ( this , child ) ;
1723+ child . renderWebGL ( this , child , interpolationPercentage , camera ) ;
17171724 }
17181725 }
17191726
You can’t perform that action at this time.
0 commit comments