Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ff4f468

Browse files
Kingtousgoderbauer
authored andcommitted
fix: shader mask is painted incorrectly on shared offscreen canvas
1 parent 9c67120 commit ff4f468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web_ui/lib/src/engine/safe_browser_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ class OffScreenCanvas {
963963
}
964964

965965
void resize(int requestedWidth, int requestedHeight) {
966-
if(requestedWidth != width && requestedHeight != height) {
966+
if(requestedWidth != width || requestedHeight != height) {
967967
width = requestedWidth;
968968
height = requestedHeight;
969969
if(offScreenCanvas != null) {

0 commit comments

Comments
 (0)