Various texture manager fixes