diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-03-02 15:13:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-02 15:13:00 -0500 |
| commit | 6361586a048dbbf617bc6e09b2f9edae815c3d8c (patch) | |
| tree | 94f1c506eb6eb110f2819f74dc5f6389c80410a1 /Source/Core/VideoCommon/Present.cpp | |
| parent | ab2f8d3475fa7dd1f1bad911bf70eb9c85eeb0da (diff) | |
| parent | 9cdc0aca9b599cd5626cba853b63dc99ce4a2213 (diff) | |
Merge pull request #11582 from Pokechu22/software-crash-on-startup
Software: Fix regressions from "Kill Renderer"
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Present.cpp | 13 |
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; } |
