Join GitHub today
Fix for webgl-based canvas sources rendering flipped in 0.40.0 + non-animated optimization #5303
WebGL APIs and Canvas APIs are vertically flipped (gl reads from the lower left, canvas from the upper left), so I introduced #5300 in #5155. Eventually we should try to write render tests with a secondary webgl canvas
Edit: this PR also modifies the intermediary read step to only reread if a canvas is supposed to be animated, if it hasn't been read yet, or if it is resized, to mitigate performance concerns for non-animated canvases (see #5301).