Skip to content

Commit

Permalink
fix: set preserveDrawingBuffer true to fix canvas.toDataURL can not work
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Jan 17, 2024
1 parent f428068 commit 7452bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/Renderer/WebGLRenderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export class WebGLRenderer extends IRenderer {
alpha: false,
antialias: false,
premultipliedAlpha: true,
preserveDrawingBuffer: false,
preserveDrawingBuffer: true,
powerPreference: 'default',
failIfMajorPerformanceCaveat: false,
});
Expand Down

0 comments on commit 7452bb0

Please sign in to comment.