mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Fix shadowing like in DX9..
Not sure if the previous commit broke anything, but better be safe.. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6629 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f09fd080fb
commit
a85e9f1455
1 changed files with 3 additions and 2 deletions
|
@ -373,9 +373,10 @@ u64 EncodeToRamFromTexture(u32 address,GLuint source_texture, bool bFromZBuffer,
|
||||||
dest_ptr, expandedWidth / samples, expandedHeight, readStride,
|
dest_ptr, expandedWidth / samples, expandedHeight, readStride,
|
||||||
true, bScaleByHalf > 0 && !bFromZBuffer);
|
true, bScaleByHalf > 0 && !bFromZBuffer);
|
||||||
|
|
||||||
|
u64 hash = 0;
|
||||||
if (g_ActiveConfig.bEFBCopyCacheEnable)
|
if (g_ActiveConfig.bEFBCopyCacheEnable)
|
||||||
{
|
{
|
||||||
u64 hash = GetHash64(dest_ptr, size_in_bytes,
|
hash = GetHash64(dest_ptr, size_in_bytes,
|
||||||
g_ActiveConfig.iSafeTextureCache_ColorSamples);
|
g_ActiveConfig.iSafeTextureCache_ColorSamples);
|
||||||
|
|
||||||
// If the texture in RAM is already in the texture cache,
|
// If the texture in RAM is already in the texture cache,
|
||||||
|
@ -385,7 +386,7 @@ u64 EncodeToRamFromTexture(u32 address,GLuint source_texture, bool bFromZBuffer,
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureCache::MakeRangeDynamic(address,size_in_bytes);
|
TextureCache::MakeRangeDynamic(address,size_in_bytes);
|
||||||
return 0;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EncodeToRamYUYV(GLuint srcTexture, const TargetRectangle& sourceRc, u8* destAddr, int dstWidth, int dstHeight)
|
void EncodeToRamYUYV(GLuint srcTexture, const TargetRectangle& sourceRc, u8* destAddr, int dstWidth, int dstHeight)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue