mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Fix some shadowing warnings.
This commit is contained in:
parent
f13a07fb82
commit
0e04e0c305
@ -139,8 +139,8 @@ void Jit64::lXXx(UGeckoInstruction inst)
|
|||||||
MOV(32, gpr.R(d), R(EAX));
|
MOV(32, gpr.R(d), R(EAX));
|
||||||
gpr.UnlockAll();
|
gpr.UnlockAll();
|
||||||
|
|
||||||
gpr.Flush(FLUSH_ALL);
|
gpr.Flush(FLUSH_ALL);
|
||||||
fpr.Flush(FLUSH_ALL);
|
fpr.Flush(FLUSH_ALL);
|
||||||
|
|
||||||
// if it's still 0, we can wait until the next event
|
// if it's still 0, we can wait until the next event
|
||||||
TEST(32, R(EAX), R(EAX));
|
TEST(32, R(EAX), R(EAX));
|
||||||
|
@ -60,26 +60,26 @@ public:
|
|||||||
int frameCount;
|
int frameCount;
|
||||||
|
|
||||||
|
|
||||||
void SetGeneralParameters(u32 addr, u32 size, u32 format, unsigned int num_mipmaps)
|
void SetGeneralParameters(u32 _addr, u32 _size, u32 _format, unsigned int _num_mipmaps)
|
||||||
{
|
{
|
||||||
this->addr = addr;
|
addr = _addr;
|
||||||
this->size_in_bytes = size;
|
size_in_bytes = _size;
|
||||||
this->format = format;
|
format = _format;
|
||||||
this->num_mipmaps = num_mipmaps;
|
num_mipmaps = _num_mipmaps;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetDimensions(unsigned int native_width, unsigned int native_height, unsigned int virtual_width, unsigned int virtual_height)
|
void SetDimensions(unsigned int _native_width, unsigned int _native_height, unsigned int _virtual_width, unsigned int _virtual_height)
|
||||||
{
|
{
|
||||||
this->native_width = native_width;
|
native_width = _native_width;
|
||||||
this->native_height = native_height;
|
native_height = _native_height;
|
||||||
this->virtual_width = virtual_width;
|
virtual_width = _virtual_width;
|
||||||
this->virtual_height = virtual_height;
|
virtual_height = _virtual_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetHashes(u64 hash/*, u32 pal_hash*/)
|
void SetHashes(u64 _hash/*, u32 _pal_hash*/)
|
||||||
{
|
{
|
||||||
this->hash = hash;
|
hash = _hash;
|
||||||
//this->pal_hash = pal_hash;
|
//pal_hash = _pal_hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1289,10 +1289,10 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
|
|||||||
if (FramebufferManagerBase::LastXfbWidth() != fbWidth || FramebufferManagerBase::LastXfbHeight() != fbHeight)
|
if (FramebufferManagerBase::LastXfbWidth() != fbWidth || FramebufferManagerBase::LastXfbHeight() != fbHeight)
|
||||||
{
|
{
|
||||||
xfbchanged = true;
|
xfbchanged = true;
|
||||||
unsigned int w = (fbWidth < 1 || fbWidth > MAX_XFB_WIDTH) ? MAX_XFB_WIDTH : fbWidth;
|
unsigned int const last_w = (fbWidth < 1 || fbWidth > MAX_XFB_WIDTH) ? MAX_XFB_WIDTH : fbWidth;
|
||||||
unsigned int h = (fbHeight < 1 || fbHeight > MAX_XFB_HEIGHT) ? MAX_XFB_HEIGHT : fbHeight;
|
unsigned int const last_h = (fbHeight < 1 || fbHeight > MAX_XFB_HEIGHT) ? MAX_XFB_HEIGHT : fbHeight;
|
||||||
FramebufferManagerBase::SetLastXfbWidth(w);
|
FramebufferManagerBase::SetLastXfbWidth(last_w);
|
||||||
FramebufferManagerBase::SetLastXfbHeight(h);
|
FramebufferManagerBase::SetLastXfbHeight(last_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WindowResized = false;
|
bool WindowResized = false;
|
||||||
|
@ -330,15 +330,15 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
|
|||||||
srcRect);
|
srcRect);
|
||||||
|
|
||||||
u8* dst = Memory::GetPointer(addr);
|
u8* dst = Memory::GetPointer(addr);
|
||||||
u64 hash = GetHash64(dst,encoded_size,g_ActiveConfig.iSafeTextureCache_ColorSamples);
|
u64 const new_hash = GetHash64(dst,encoded_size,g_ActiveConfig.iSafeTextureCache_ColorSamples);
|
||||||
|
|
||||||
// Mark texture entries in destination address range dynamic unless caching is enabled and the texture entry is up to date
|
// Mark texture entries in destination address range dynamic unless caching is enabled and the texture entry is up to date
|
||||||
if (!g_ActiveConfig.bEFBCopyCacheEnable)
|
if (!g_ActiveConfig.bEFBCopyCacheEnable)
|
||||||
TextureCache::MakeRangeDynamic(addr,encoded_size);
|
TextureCache::MakeRangeDynamic(addr,encoded_size);
|
||||||
else if (!TextureCache::Find(addr, hash))
|
else if (!TextureCache::Find(addr, new_hash))
|
||||||
TextureCache::MakeRangeDynamic(addr,encoded_size);
|
TextureCache::MakeRangeDynamic(addr,encoded_size);
|
||||||
|
|
||||||
this->hash = hash;
|
hash = new_hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
FramebufferManager::SetFramebuffer(0);
|
FramebufferManager::SetFramebuffer(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user