osd/windows/window.cpp: Fixed a crash when toggling fullscreen. [Ryan Holtz] (#10692)

osd/windows/window.cpp: Check for a non-null renderer before issuing a draw request to the renderer. [Ryan Holtz]
This commit is contained in:
MooglyGuy 2022-12-16 15:23:47 +01:00 committed by GitHub
parent 1a408445ad
commit 13aa80cb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1403,7 +1403,10 @@ void win_window_info::draw_video_contents(HDC dc, bool update)
{
// update DC
m_dc = dc;
renderer().draw(update);
if (has_renderer())
{
renderer().draw(update);
}
}
}
}