mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Renderer: Re-implement window size frame dumping
This was broken by hybrid XFB, and all frame dumping/screenshots occured at the full internal resolution.
This commit is contained in:
@ -711,8 +711,18 @@ void Renderer::DoDumpFrame()
|
|||||||
void Renderer::UpdateFrameDumpTexture()
|
void Renderer::UpdateFrameDumpTexture()
|
||||||
{
|
{
|
||||||
int target_width, target_height;
|
int target_width, target_height;
|
||||||
std::tie(target_width, target_height) = CalculateOutputDimensions(
|
if (!g_ActiveConfig.bInternalResolutionFrameDumps)
|
||||||
m_last_xfb_texture->GetConfig().width, m_last_xfb_texture->GetConfig().height);
|
{
|
||||||
|
auto target_rect = GetTargetRectangle();
|
||||||
|
target_width = target_rect.GetWidth();
|
||||||
|
target_height = target_rect.GetHeight();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
std::tie(target_width, target_height) = CalculateOutputDimensions(
|
||||||
|
m_last_xfb_texture->GetConfig().width, m_last_xfb_texture->GetConfig().height);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_dump_texture == nullptr ||
|
if (m_dump_texture == nullptr ||
|
||||||
m_dump_texture->GetConfig().width != static_cast<u32>(target_width) ||
|
m_dump_texture->GetConfig().width != static_cast<u32>(target_width) ||
|
||||||
m_dump_texture->GetConfig().height != static_cast<u32>(target_height))
|
m_dump_texture->GetConfig().height != static_cast<u32>(target_height))
|
||||||
|
Reference in New Issue
Block a user