compositor: Make sure surface->transform.inverse is a complete matrix
We never init this, so we need to copy over the position matrix and then overwrite the translation entries to make sure we have a valid matrix. Thanks to Pekka for spotting this (twice).
This commit is contained in:
parent
383b60fad5
commit
9bcaaebfee
@ -603,7 +603,7 @@ weston_surface_update_transform_disable(struct weston_surface *surface)
|
||||
|
||||
surface->transform.matrix = surface->transform.position.matrix;
|
||||
|
||||
surface->transform.inverse.type = WESTON_MATRIX_TRANSFORM_TRANSLATE;
|
||||
surface->transform.inverse = surface->transform.position.matrix;
|
||||
surface->transform.inverse.d[12] = -surface->geometry.x;
|
||||
surface->transform.inverse.d[13] = -surface->geometry.y;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user