File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2224,8 +2224,6 @@ var WebGLRenderer = new Class({
22242224
22252225 gl . enable ( gl . SCISSOR_TEST ) ;
22262226
2227- this . pipelines . preRender ( ) ;
2228-
22292227 this . currentScissor = this . defaultScissor ;
22302228
22312229 this . scissorStack . length = 0 ;
@@ -2242,6 +2240,8 @@ var WebGLRenderer = new Class({
22422240
22432241 this . textureFlush = 0 ;
22442242
2243+ this . pipelines . preRender ( ) ;
2244+
22452245 this . pipelines . setMulti ( ) ;
22462246 } ,
22472247
@@ -2361,9 +2361,7 @@ var WebGLRenderer = new Class({
23612361 {
23622362 if ( this . contextLost ) { return ; }
23632363
2364- this . flush ( ) ;
2365-
2366- // Unbind custom framebuffer here
2364+ this . pipelines . postRender ( ) ;
23672365
23682366 var state = this . snapshotState ;
23692367
@@ -2374,8 +2372,6 @@ var WebGLRenderer = new Class({
23742372 state . callback = null ;
23752373 }
23762374
2377- this . pipelines . postRender ( ) ;
2378-
23792375 if ( this . textureFlush > 0 )
23802376 {
23812377 this . startActiveTexture ++ ;
You can’t perform that action at this time.
0 commit comments