small changes/fixes to Texture error management