From 2ad901b2da570673797ea822d56c1bb3f6c58984 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Fri, 6 Nov 2015 00:47:50 +0100 Subject: [PATCH] VideoCommon: drop unused variable/setter --- Source/Core/VideoCommon/TextureCacheBase.cpp | 14 +------------- Source/Core/VideoCommon/TextureCacheBase.h | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 9ed4a72261..8f1d700dfd 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -40,8 +40,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::bound_textures[8]; TextureCacheBase::BackupConfig TextureCacheBase::backup_config; -static bool invalidate_texture_cache_requested; - TextureCacheBase::TCacheEntryBase::~TCacheEntryBase() { } @@ -67,13 +65,6 @@ TextureCacheBase::TextureCacheBase() HiresTexture::Init(); SetHash64Function(); - - invalidate_texture_cache_requested = false; -} - -void TextureCacheBase::RequestInvalidateTextureCache() -{ - invalidate_texture_cache_requested = true; } void TextureCacheBase::Invalidate() @@ -116,14 +107,11 @@ void TextureCacheBase::OnConfigChanged(VideoConfig& config) if (config.iSafeTextureCache_ColorSamples != backup_config.s_colorsamples || config.bTexFmtOverlayEnable != backup_config.s_texfmt_overlay || config.bTexFmtOverlayCenter != backup_config.s_texfmt_overlay_center || - config.bHiresTextures != backup_config.s_hires_textures || - invalidate_texture_cache_requested) + config.bHiresTextures != backup_config.s_hires_textures) { g_texture_cache->Invalidate(); TexDecoder_SetTexFmtOverlayOptions(g_ActiveConfig.bTexFmtOverlayEnable, g_ActiveConfig.bTexFmtOverlayCenter); - - invalidate_texture_cache_requested = false; } if ((config.iStereoMode > 0) != backup_config.s_stereo_3d || diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 9ecb61c8ae..9e7b4a7c71 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -139,8 +139,6 @@ public: static void CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat, u32 dstStride, PEControl::PixelFormat srcFormat, const EFBRectangle& srcRect, bool isIntensity, bool scaleByHalf); - static void RequestInvalidateTextureCache(); - virtual void ConvertTexture(TCacheEntryBase* entry, TCacheEntryBase* unconverted, void* palette, TlutFormat format) = 0; protected: