gl: Respect clip wehn drawing scale nodes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Feb 2023 01:10:58 +0000 (20:10 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Mar 2023 17:32:08 +0000 (11:32 -0600)
commit3a0152b65fd75f631b76e036a53ed7aca209dfa0
tree41b234ee043a6fd063618be031c5faac22365cf8
parent22ba6b1f33dcbcab8d42d133b7f333ca6ff44679
gl: Respect clip wehn drawing scale nodes

Use the same approach and only create an offscreen
that is big enough for the clipped part of the scaled
texture.

If the clipped part is still too large for a single
texture, we give up and just render the texture without
filters (using the regular texture rendering code path
which supports slicing).

The following commit will add the texture-scale-magnify-10000x
test which fails without this fix.
gsk/gl/gskglrenderjob.c