mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Core/VideoCommon: Fix duplicate OSD Custom Textures messages
Resolves duplicate OSD messages for Loading and Found custom textures. VideoBackend initialization results in HiresTexture::Init being called. We already call HiresTexture::Update when OnNewTitleLoad is called. Thus we can remove HiresTextures::Init completely as it is redundant.
This commit is contained in:
parent
05cad38abc
commit
07f712f8a0
@ -77,11 +77,6 @@ std::pair<std::string, bool> GetNameArbPair(const TextureInfo& texture_info)
|
|||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void HiresTexture::Init()
|
|
||||||
{
|
|
||||||
Update();
|
|
||||||
}
|
|
||||||
|
|
||||||
void HiresTexture::Shutdown()
|
void HiresTexture::Shutdown()
|
||||||
{
|
{
|
||||||
Clear();
|
Clear();
|
||||||
|
@ -22,7 +22,6 @@ std::set<std::string> GetTextureDirectoriesWithGameId(const std::string& root_di
|
|||||||
class HiresTexture
|
class HiresTexture
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void Init();
|
|
||||||
static void Update();
|
static void Update();
|
||||||
static void Clear();
|
static void Clear();
|
||||||
static void Shutdown();
|
static void Shutdown();
|
||||||
|
@ -99,8 +99,6 @@ TextureCacheBase::TextureCacheBase()
|
|||||||
TexDecoder_SetTexFmtOverlayOptions(m_backup_config.texfmt_overlay,
|
TexDecoder_SetTexFmtOverlayOptions(m_backup_config.texfmt_overlay,
|
||||||
m_backup_config.texfmt_overlay_center);
|
m_backup_config.texfmt_overlay_center);
|
||||||
|
|
||||||
HiresTexture::Init();
|
|
||||||
|
|
||||||
TMEM::InvalidateAll();
|
TMEM::InvalidateAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user