Auto gen mipmap for TextureGL fixed.
Add GetLastLoadedDocument to EventManager