fixed compiler warning. Don't use _filePath to check tga if it's length is 0
implemented lostDevice support when app loses the directx device