summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2011-01-02 23:13:29 +0000
committerNeoBrainX <NeoBrainX@googlemail.com>2011-01-02 23:13:29 +0000
commitecf92f5c3c31ae6c1541469c338a5ad5a81acf73 (patch)
treebf7aafa2652169b84b8efccbe2b055db2d6276bd /Source/Core/VideoCommon/Src/TextureCacheBase.cpp
parent4b15325acdb6c8638ea07d349e17c2d4e7c5142b (diff)
D3D9: Make sure to use powers of two as render target dimensions if it's needed by the device.
Some other cleanups. Possibly fixes issue 3256. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6725 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
index fffde7b7b2..a64230bed6 100644
--- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
@@ -27,15 +27,6 @@ TextureCache *g_texture_cache;
u8 *TextureCache::temp;
TextureCache::TexCache TextureCache::textures;
-// returns the exponent of the smallest power of two which is greater than val
-unsigned int GetPow2(unsigned int val)
-{
- unsigned int ret = 0;
- for (; val; val >>= 1)
- ++ret;
- return ret;
-}
-
TextureCache::TCacheEntryBase::~TCacheEntryBase()
{
if (0 == addr)