shaped-texture: Do not invalidate content on set_cogl_texture()

Robert Mader requested to merge rmader/mutter:partial-invalidation-dmabuf into master

This was wrongly introduced in 75cffd0e. As the comment above explains, we only want to queue redraws in response to surface/buffer damage.

This triggered a full redraw when using DMA buffers on Wayland as we currently create a new texture on every buffer_attach(), breaking partial invalidation.

Fixes #947 (closed)

Merge request reports