Skip to content

Commit

Permalink
Core/VideoCommon: Fix duplicate OSD Custom Textures messages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dreamsyntax committed Dec 28, 2024
1 parent 05cad38 commit 07f712f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions Source/Core/VideoCommon/HiresTextures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ std::pair<std::string, bool> GetNameArbPair(const TextureInfo& texture_info)
}
} // namespace

void HiresTexture::Init()
{
Update();
}

void HiresTexture::Shutdown()
{
Clear();
Expand Down
1 change: 0 additions & 1 deletion Source/Core/VideoCommon/HiresTextures.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ std::set<std::string> GetTextureDirectoriesWithGameId(const std::string& root_di
class HiresTexture
{
public:
static void Init();
static void Update();
static void Clear();
static void Shutdown();
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/VideoCommon/TextureCacheBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ TextureCacheBase::TextureCacheBase()
TexDecoder_SetTexFmtOverlayOptions(m_backup_config.texfmt_overlay,
m_backup_config.texfmt_overlay_center);

HiresTexture::Init();

TMEM::InvalidateAll();
}

Expand Down

0 comments on commit 07f712f

Please sign in to comment.