mirror of https://github.com/PCSX2/pcsx2.git
GS/CRC: Fix the sizing on Sonic Unleashed copy CRC
This commit is contained in:
parent
7ed33832b8
commit
1f77e7d90a
|
@ -1059,9 +1059,11 @@ bool GSHwHack::OI_SonicUnleashed(GSRendererHW& r, GSTexture* rt, GSTexture* ds,
|
|||
GSTextureCache::Target* rt_again = g_texture_cache->LookupTarget(Frame, src_size, src->m_scale, GSTextureCache::RenderTarget);
|
||||
if (rt_again->m_unscaled_size.x < src->m_unscaled_size.x || rt_again->m_unscaled_size.y < src->m_unscaled_size.y)
|
||||
{
|
||||
rt_again->ResizeTexture(std::max(rt_again->m_unscaled_size.x, src->m_unscaled_size.x),
|
||||
std::max(rt_again->m_unscaled_size.y, src->m_unscaled_size.y));
|
||||
GSVector2i new_size = GSVector2i(std::max(rt_again->m_unscaled_size.x, src->m_unscaled_size.x),
|
||||
std::max(rt_again->m_unscaled_size.y, src->m_unscaled_size.y));
|
||||
rt_again->ResizeTexture(new_size.x, new_size.y);
|
||||
rt = rt_again->m_texture;
|
||||
rt_size = new_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue