Skip to content

Commit

Permalink
change context mode to opaque so blending works correctly when parent…
Browse files Browse the repository at this point in the history
… element is not black
  • Loading branch information
rconde01 authored and greggman committed Mar 16, 2024
1 parent 5123ecf commit 00445f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/a-buffer/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const presentationFormat = navigator.gpu.getPreferredCanvasFormat();
context.configure({
device,
format: presentationFormat,
alphaMode: 'premultiplied',
alphaMode: 'opaque',
});

const params = new URLSearchParams(window.location.search);
Expand Down

0 comments on commit 00445f5

Please sign in to comment.