only update _videoFrameCanvas if accessing video
This commit is contained in:
Родитель
48260453ba
Коммит
dedf3da67a
|
@ -132,8 +132,10 @@ export default class CameraReality extends Reality {
|
|||
canvasHeight = this._videoRenderHeight = height;
|
||||
var cameraAspect = canvasWidth / canvasHeight;
|
||||
|
||||
this._videoFrameCanvas.width = width;
|
||||
this._videoFrameCanvas.height = height;
|
||||
if (this._videoFrameCanvas) {
|
||||
this._videoFrameCanvas.width = width;
|
||||
this._videoFrameCanvas.height = height;
|
||||
}
|
||||
}
|
||||
|
||||
this._setFovy(this._cameraFov / (Math.PI/180))
|
||||
|
|
Загрузка…
Ссылка в новой задаче