LOOM-1794: Fix texture reload on context loss