Remove more obsolete code

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6153 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Nolan Check
2010-08-30 04:05:06 +00:00
parent 014e87157c
commit 6a695eff49
7 changed files with 5 additions and 34 deletions

View File

@ -41,14 +41,12 @@ public:
unsigned int w, h, fmt, MipLevels;
int Scaledw, Scaledh;
float scaleX, scaleY; // for hires texutres
bool isRenderTarget;
bool isNonPow2;
TCacheEntry() : texture(NULL), addr(0), size_in_bytes(0), hash(0), paletteHash(0), oldpixel(0),
frameCount(0), w(0), h(0), fmt(0), MipLevels(0), Scaledw(0), Scaledh(0),
scaleX(1.f), scaleY(1.f), isRenderTarget(false), isNonPow2(true) {}
isRenderTarget(false), isNonPow2(true) {}
void Destroy(bool shutdown);
bool IntersectsMemoryRange(u32 range_address, u32 range_size);

View File

@ -330,8 +330,6 @@ void Flush()
if (tentry)
{
PixelShaderManager::SetTexDims(i, tentry->w, tentry->h, 0, 0);
if (tentry->scaleX != 1.0f || tentry->scaleY != 1.0f)
PixelShaderManager::SetCustomTexScale(i, tentry->scaleX, tentry->scaleY);
}
else
{

View File

@ -274,8 +274,6 @@ TextureCache::TCacheEntry *TextureCache::Load(int stage, u32 address, int width,
{
expandedWidth = width;
expandedHeight = height;
entry.scaleX = (float) width / oldWidth;
entry.scaleY = (float) height / oldHeight;
}
}

View File

@ -42,8 +42,6 @@ public:
int w, h, fmt,MipLevels;
int Scaledw, Scaledh;
float scaleX, scaleY; // Hires texutres need this
bool isRenderTarget;
bool isDynamic;// mofified from cpu
bool isNonPow2;
@ -58,8 +56,6 @@ public:
addr = 0;
size_in_bytes = 0;
frameCount = 0;
scaleX = 1.0f;
scaleY = 1.0f;
isNonPow2 = true;
w = 0;
h = 0;

View File

@ -260,8 +260,6 @@ void Flush()
if (tentry) {
PixelShaderManager::SetTexDims(i, tentry->w, tentry->h, 0, 0);
if (tentry->scaleX != 1.0f || tentry->scaleY != 1.0f)
PixelShaderManager::SetCustomTexScale(i, tentry->scaleX, tentry->scaleY);
}
else
{