Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Mar 10, 2024
1 parent 2ed4843 commit 4bb57cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/renderer/Offscreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const drawAsImageFromPicture = (picture: SkPicture, size: SkSize) => {
canvas.drawPicture(picture);
surface.flush();
const image = surface.makeImageSnapshot();
// If we are not on the main thread, we need to make the image non-texture.
// If we are not on the main thread or if we are on Web, we need to make the image non-texture.
if (!isOnMainThread() || Platform.OS === "web") {
return image.makeNonTextureImage();
} else {
Expand Down

0 comments on commit 4bb57cc

Please sign in to comment.