assert replaced with ET_FAIL in texture factory