Skip to content

Commit

Permalink
Merge pull request #1460 from silx-kit/fix-save-as
Browse files Browse the repository at this point in the history
Preserve GL buffer to fix "save image as"
  • Loading branch information
axelboc authored Jul 26, 2023
2 parents 7ad6549 + 04a7aef commit 587a0d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lib/src/vis/shared/R3FCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function R3FCanvas(props: PropsWithChildren<Props>) {
frameloop="demand" // disable game loop
dpr={[1, 3]} // https://discoverthreejs.com/tips-and-tricks/#performance
resize={{ debounce: { scroll: 20, resize: 200 }, scroll: false }} // https://github.com/pmndrs/react-three-fiber/discussions/1906
gl={{ preserveDrawingBuffer: true }} // for "Save Image As..." and snapshot feature to work
>
<ambientLight />
{children}
Expand Down

0 comments on commit 587a0d9

Please sign in to comment.