mirror of
https://github.com/holub/mame
synced 2025-06-22 20:38:50 +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,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user