From ecf92f5c3c31ae6c1541469c338a5ad5a81acf73 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Sun, 2 Jan 2011 23:13:29 +0000 Subject: 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 --- Source/Core/VideoCommon/Src/TextureCacheBase.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp') 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) -- cgit v1.2.3