From 4079d1d92df6b6c1444dab261914a735a8872765 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 3 Aug 2021 16:41:44 -0400 Subject: [PATCH] Fix for now --- .../widgets/camera/views/capture/CameraWidgetCaptureView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx b/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx index 086081e1..659541ca 100644 --- a/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx +++ b/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx @@ -30,7 +30,7 @@ export const CameraWidgetCaptureView: FC = props = const rectangle = new NitroRectangle(Math.floor(frameBounds.x), Math.floor(frameBounds.y), Math.floor(frameBounds.width), Math.floor(frameBounds.height)); - const image = GetRoomEngine().createRoomScreenshot(GetRoomSession().roomId, 1, rectangle, true); + const texture = GetRoomEngine().createTextureFromRoom(GetRoomSession().roomId, 1, rectangle); if(cameraWidgetContext.cameraRoll.length + 1 === CAMERA_ROLL_LIMIT) { @@ -44,7 +44,7 @@ export const CameraWidgetCaptureView: FC = props = remainingRoll = remainingRoll.slice(0, CAMERA_ROLL_LIMIT - 1); } - cameraWidgetContext.setCameraRoll([ ...remainingRoll, image ]); + //cameraWidgetContext.setCameraRoll([ ...remainingRoll, image ]); }, [ cameraWidgetContext ]); const processAction = useCallback((type: string, value: string | number = null) =>