|
@@ -139,7 +139,7 @@ THREE.CanvasRenderer = function ( parameters ) {
|
|
|
this.supportsVertexTextures = function () {};
|
|
|
this.setFaceCulling = function () {};
|
|
|
|
|
|
- this.setSize = function ( width, height ) {
|
|
|
+ this.setSize = function ( width, height, updateStyle ) {
|
|
|
|
|
|
_canvasWidth = width * this.devicePixelRatio;
|
|
|
_canvasHeight = height * this.devicePixelRatio;
|
|
@@ -150,8 +150,12 @@ THREE.CanvasRenderer = function ( parameters ) {
|
|
|
_canvas.width = _canvasWidth;
|
|
|
_canvas.height = _canvasHeight;
|
|
|
|
|
|
- _canvas.style.width = width + 'px';
|
|
|
- _canvas.style.height = height + 'px';
|
|
|
+ if ( updateStyle !== false ) {
|
|
|
+
|
|
|
+ _canvas.style.width = width + 'px';
|
|
|
+ _canvas.style.height = height + 'px';
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
_clipBox.set(
|
|
|
new THREE.Vector2( - _canvasWidthHalf, - _canvasHeightHalf ),
|