Selaa lähdekoodia

WebGLRenderer: Fixed compile()

Mr.doob 7 vuotta sitten
vanhempi
commit
ad926ccc03
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/renderers/WebGLRenderer.js

+ 1 - 0
src/renderers/WebGLRenderer.js

@@ -993,6 +993,7 @@ function WebGLRenderer( parameters ) {
 
 	this.compile = function ( scene, camera ) {
 
+		currentRenderState = renderStates.get( scene, camera );
 		currentRenderState.init();
 
 		scene.traverse( function ( object ) {