@@ -532,7 +532,7 @@ THREE.WebGLRenderer = function ( parameters ) {
this.enableScissorTest = function ( boolean ) {
- state.set( _gl.SCISSOR_TEST, boolean );
+ state.setScissorTest( boolean );
};
@@ -357,6 +357,20 @@ THREE.WebGLState = function ( gl, paramThreeToGL ) {
+ this.setScissorTest = function ( scissorTest ) {
+
+ if ( scissorTest ) {
+ this.enable( gl.SCISSOR_TEST );
+ } else {
+ this.disable( gl.SCISSOR_TEST );
+ }
+ };
// texture
this.activeTexture = function ( webglSlot ) {