Skip to content

effects: Make DeformEffect disable clipping if specified region is infinite

Vlad Zahorodnii requested to merge work/zzag/fix-magic-lamp into master

The Scene no longer clips window quads if the specified paint region is infinite. The infinite region is defined as (INT_MIN/2, INT_MIN/2, INT_MAX, INT_MAX). If you try to scale the infinite region, you will easily hit integer overflow.

This change makes the DeformEffect disable geometry clipping if the given paint region is infinite region in order to avoid hitting integer overflow.

Merge request reports