Gracefully handle renderer destruction
In a few places we keep track of textures. Gracefully handle renderer destruction by clearing the texture pointers.
This is a prerequisite for handling GPU resets. Tested with: https://github.com/swaywm/sway/pull/8063