ngl: Fix an oversight

We were special-casing 2D affine transforms,
but overlooked even simpler transforms.
This commit is contained in:
Matthias Clasen 2021-04-04 23:44:26 -04:00
parent 2e18f1b6e3
commit a1ece16143

View File

@ -726,7 +726,7 @@ gsk_ngl_render_job_transform_bounds (GskNglRenderJob *job,
/* Our most common transform is 2d-affine, so inline it.
* Both identity and 2d-translate are virtually unseen here.
*/
if G_LIKELY (category == GSK_TRANSFORM_CATEGORY_2D_AFFINE)
if G_LIKELY (category >= GSK_TRANSFORM_CATEGORY_2D_AFFINE)
{
float dx, dy, scale_x, scale_y;