fix for texturemultipassmaterial runtime error when loading a file that
contains a texturemultipassmaterial