error control for the texture manager