|
@@ -376,19 +376,19 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
this.setViewport = function ( x, y, width, height ) {
|
|
|
|
|
|
- _viewport.set( x, y, width, height );
|
|
|
+ state.viewport( _viewport.set( x, y, width, height ) );
|
|
|
|
|
|
};
|
|
|
|
|
|
this.setScissor = function ( x, y, width, height ) {
|
|
|
|
|
|
- _scissor.set( x, y, width, height );
|
|
|
+ state.scissor( _scissor.set( x, y, width, height ) );
|
|
|
|
|
|
};
|
|
|
|
|
|
this.setScissorTest = function ( boolean ) {
|
|
|
|
|
|
- _scissorTest = boolean;
|
|
|
+ state.setScissorTest( _scissorTest = boolean );
|
|
|
|
|
|
};
|
|
|
|