summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
-rw-r--r--Source/Core/VideoCommon/Present.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp
index 181dfea140..25ec2f27b0 100644
--- a/Source/Core/VideoCommon/Present.cpp
+++ b/Source/Core/VideoCommon/Present.cpp
@@ -521,9 +521,16 @@ void Presenter::Present()
if (!g_gfx->SupportsUtilityDrawing())
{
- // Video Software doesn't support Drawing a UI or doing post-processing
- // So just Show the XFB
- g_gfx->ShowImage(m_xfb_entry->texture.get(), m_xfb_rect);
+ // Video Software doesn't support drawing a UI or doing post-processing
+ // So just show the XFB
+ if (m_xfb_entry)
+ {
+ g_gfx->ShowImage(m_xfb_entry->texture.get(), m_xfb_rect);
+
+ // Update the window size based on the frame that was just rendered.
+ // Due to depending on guest state, we need to call this every frame.
+ SetWindowSize(m_xfb_rect.GetWidth(), m_xfb_rect.GetHeight());
+ }
return;
}