2
0
Mr.doob 9 жил өмнө
parent
commit
6938eaae3d

+ 0 - 4
examples/js/renderers/RaytracingWorker.js

@@ -108,8 +108,6 @@ THREE.RaytracingRendererWorker = function ( parameters ) {
 	var lights = [];
 	var lights = [];
 	var cache = {};
 	var cache = {};
 
 
-	var animationFrameId = null;
-
 	this.setSize = function ( width, height ) {
 	this.setSize = function ( width, height ) {
 
 
 		canvasWidth = width;
 		canvasWidth = width;
@@ -510,8 +508,6 @@ THREE.RaytracingRendererWorker = function ( parameters ) {
 
 
 		reallyThen = Date.now()
 		reallyThen = Date.now()
 
 
-		cancelAnimationFrame( animationFrameId );
-
 		// update scene graph
 		// update scene graph
 
 
 		if ( scene.autoUpdate === true ) scene.updateMatrixWorld();
 		if ( scene.autoUpdate === true ) scene.updateMatrixWorld();