Merge pull request #12300 from iwubcode/dump_texture_free_function VideoCommon: move texture dump to a free function