Minor cleanup.
This commit is contained in:
parent
8a5abbddc4
commit
043a85f8a6
|
@ -763,16 +763,12 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
|
||||||
TCacheEntryBase *entry = textures[dstAddr];
|
TCacheEntryBase *entry = textures[dstAddr];
|
||||||
if (entry)
|
if (entry)
|
||||||
{
|
{
|
||||||
if ((entry->type == TCET_EC_VRAM && entry->virtual_width == scaled_tex_w && entry->virtual_height == scaled_tex_h)
|
if (entry->type == TCET_EC_DYNAMIC && entry->native_width == tex_w && entry->native_height == tex_h)
|
||||||
|| (entry->type == TCET_EC_DYNAMIC && entry->native_width == tex_w && entry->native_height == tex_h))
|
|
||||||
{
|
|
||||||
if (entry->type == TCET_EC_DYNAMIC)
|
|
||||||
{
|
{
|
||||||
scaled_tex_w = tex_w;
|
scaled_tex_w = tex_w;
|
||||||
scaled_tex_h = tex_h;
|
scaled_tex_h = tex_h;
|
||||||
}
|
}
|
||||||
}
|
else if (!(entry->type == TCET_EC_VRAM && entry->virtual_width == scaled_tex_w && entry->virtual_height == scaled_tex_h))
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// remove it and recreate it as a render target
|
// remove it and recreate it as a render target
|
||||||
delete entry;
|
delete entry;
|
||||||
|
|
Loading…
Reference in New Issue