|
@@ -989,12 +989,6 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( _isContextLost === true ) return;
|
|
if ( _isContextLost === true ) return;
|
|
|
|
|
|
- // reset caching for this frame
|
|
|
|
-
|
|
|
|
- bindingStates.resetDefaultState();
|
|
|
|
- _currentMaterialId = - 1;
|
|
|
|
- _currentCamera = null;
|
|
|
|
-
|
|
|
|
// update scene graph
|
|
// update scene graph
|
|
|
|
|
|
if ( scene.autoUpdate === true ) scene.updateMatrixWorld();
|
|
if ( scene.autoUpdate === true ) scene.updateMatrixWorld();
|
|
@@ -1101,6 +1095,10 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
// _gl.finish();
|
|
// _gl.finish();
|
|
|
|
|
|
|
|
+ bindingStates.resetDefaultState();
|
|
|
|
+ _currentMaterialId = - 1;
|
|
|
|
+ _currentCamera = null;
|
|
|
|
+
|
|
renderStateStack.pop();
|
|
renderStateStack.pop();
|
|
|
|
|
|
if ( renderStateStack.length > 0 ) {
|
|
if ( renderStateStack.length > 0 ) {
|