mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Use FB size instead of output size for target lookup
Fixes render target height doubling unnecessarily in Ridge Racer V.
This commit is contained in:
parent
0c9f44d8a4
commit
03feacd69a
|
@ -227,7 +227,9 @@ GSTexture* GSRendererHW::GetOutput(int i, int& y_offset)
|
|||
TEX0.TBW = curFramebuffer.FBW;
|
||||
TEX0.PSM = curFramebuffer.PSM;
|
||||
|
||||
if (GSTextureCache::Target* rt = m_tc->LookupDisplayTarget(TEX0, GetOutputSize(fb_height) * GSConfig.UpscaleMultiplier, fb_width, fb_height))
|
||||
const GSVector2i scaled_size(static_cast<int>(static_cast<float>(fb_width) * GSConfig.UpscaleMultiplier),
|
||||
static_cast<int>(static_cast<float>(fb_height) * GSConfig.UpscaleMultiplier));
|
||||
if (GSTextureCache::Target* rt = m_tc->LookupDisplayTarget(TEX0, scaled_size, fb_width, fb_height))
|
||||
{
|
||||
t = rt->m_texture;
|
||||
|
||||
|
|
Loading…
Reference in New Issue