Browse Source

Three.Legacy: Fixed enableScissorTest.

Mr.doob 9 years ago
parent
commit
bbfdb8df6f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Three.Legacy.js

+ 2 - 1
src/Three.Legacy.js

@@ -447,8 +447,9 @@ Object.defineProperties( THREE.WebGLRenderer.prototype, {
 		}
 	},
 	enableScissorTest: {
-		value: function () {
+		value: function ( boolean ) {
 			console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' );
+			this.setScissorTest( boolean );
 		}
 	},
 	initMaterial: {