Fix texture resource tracking by the user pass manager


This fixes the problem with releasing the texture "correctly", as that
worked by happenstance before... This is just a first step to make the
tracking more robust and correct, there's still a need to move the RHI
texture tracking into the buffer-manager, or a similar approach, that
lives under the context so we track usage per-window and not per-layer,
as is the current situation.

Pick-to: 6.11
Change-Id: I5880c40a6159729062313965a4757edc67f609f1
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commitfdb56f495e85066ac1bf7c7411c80f7490dc6153
parent0fb07297f781ac3f18dc2c7e60eb506f145103b6
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeFri, 23 Jan 2026 14:31:52 +0100