mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Merge pull request #11582 from Pokechu22/software-crash-on-startup
Software: Fix regressions from "Kill Renderer"
This commit is contained in:
@ -161,7 +161,7 @@ public:
|
||||
bool UseGeometryShaderForUI() const;
|
||||
|
||||
// Returns info about the main surface (aka backbuffer)
|
||||
virtual SurfaceInfo GetSurfaceInfo() const { return {}; }
|
||||
virtual SurfaceInfo GetSurfaceInfo() const = 0;
|
||||
|
||||
protected:
|
||||
AbstractFramebuffer* m_current_framebuffer = nullptr;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user