mirror of
https://github.com/holub/mame
synced 2025-06-23 04:48:37 +03:00
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:
parent
1a408445ad
commit
13aa80cb00
@ -1403,10 +1403,13 @@ void win_window_info::draw_video_contents(HDC dc, bool update)
|
||||
{
|
||||
// update DC
|
||||
m_dc = dc;
|
||||
if (has_renderer())
|
||||
{
|
||||
renderer().draw(update);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//============================================================
|
||||
|
Loading…
Reference in New Issue
Block a user