mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
TextureCache: Split efb2ram from efb2tex
This commit is contained in:
@ -1050,6 +1050,25 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo
|
||||
|
||||
entry->FromRenderTarget(dst, dstFormat, dstStride, srcFormat, srcRect, isIntensity, scaleByHalf, cbufid, colmat);
|
||||
|
||||
if (g_ActiveConfig.bSkipEFBCopyToRam)
|
||||
{
|
||||
entry->Zero(dst);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_texture_cache->CopyEFB(
|
||||
dst,
|
||||
entry->format,
|
||||
entry->native_width,
|
||||
entry->BytesPerRow(),
|
||||
entry->NumBlocksY(),
|
||||
entry->memory_stride,
|
||||
srcFormat,
|
||||
srcRect,
|
||||
isIntensity,
|
||||
scaleByHalf);
|
||||
}
|
||||
|
||||
u64 hash = entry->CalculateHash();
|
||||
entry->SetHashes(hash, hash);
|
||||
|
||||
|
Reference in New Issue
Block a user