|
@@ -429,9 +429,17 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
- this.getCurrentViewport = function () {
|
|
|
+ this.getCurrentViewport = function ( target ) {
|
|
|
|
|
|
- return _currentViewport;
|
|
|
+ if ( target === undefined ) {
|
|
|
+
|
|
|
+ console.warn( 'WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument' );
|
|
|
+
|
|
|
+ target = new Vector4();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ return target.copy( _currentViewport );
|
|
|
|
|
|
};
|
|
|
|