mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
Software: Fix crash on startup when using "Compile Shaders Before Starting"
When that setting is enabled, m_xfb_entry is initially not present (during the phase where a shader compilation progress bar would be shown). The main path checks for m_xfb_entry, but the software renderer fallback path didn't. Fixes another aspect of https://bugs.dolphin-emu.org/issues/13172.
This commit is contained in:
parent
4a2d3c83c7
commit
78428dd8db
@ -521,8 +521,9 @@ void Presenter::Present()
|
|||||||
|
|
||||||
if (!g_gfx->SupportsUtilityDrawing())
|
if (!g_gfx->SupportsUtilityDrawing())
|
||||||
{
|
{
|
||||||
// Video Software doesn't support Drawing a UI or doing post-processing
|
// Video Software doesn't support drawing a UI or doing post-processing
|
||||||
// So just Show the XFB
|
// So just show the XFB
|
||||||
|
if (m_xfb_entry)
|
||||||
g_gfx->ShowImage(m_xfb_entry->texture.get(), m_xfb_rect);
|
g_gfx->ShowImage(m_xfb_entry->texture.get(), m_xfb_rect);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user