From 6ba613fbd3e7ecca0357adaab2e7fac422480a54 Mon Sep 17 00:00:00 2001 From: degasus Date: Mon, 19 May 2014 18:27:59 +0200 Subject: [PATCH] TexCache: unify global variables --- Source/Core/VideoCommon/TextureCacheBase.cpp | 8 +++----- Source/Core/VideoCommon/TextureCacheBase.h | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 94ac0d2848..870e79552b 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -19,11 +19,9 @@ #include "VideoCommon/TextureCacheBase.h" #include "VideoCommon/VideoConfig.h" -enum -{ - TEXTURE_KILL_THRESHOLD = 200, - RENDER_TARGET_KILL_THRESHOLD = 3, -}; +static const u64 TEXHASH_INVALID = 0; +static const int TEXTURE_KILL_THRESHOLD = 200; +static const int RENDER_TARGET_KILL_THRESHOLD = 3; TextureCache *g_texture_cache; diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 93345b9617..1fbcd49356 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -27,8 +27,6 @@ public: struct TCacheEntryBase { -#define TEXHASH_INVALID 0 - // common members u32 addr; u32 size_in_bytes;