|
@@ -117,8 +117,8 @@ THREE.CanvasRenderer = function ( parameters ) {
|
|
|
|
|
|
this.devicePixelRatio = parameters.devicePixelRatio !== undefined
|
|
|
? parameters.devicePixelRatio
|
|
|
- : window.devicePixelRatio !== undefined
|
|
|
- ? window.devicePixelRatio
|
|
|
+ : self.devicePixelRatio !== undefined
|
|
|
+ ? self.devicePixelRatio
|
|
|
: 1;
|
|
|
|
|
|
this.autoClear = true;
|