From 13aa80cb00ddbf34cf237d53b33e3d400f7a14c4 Mon Sep 17 00:00:00 2001 From: MooglyGuy Date: Fri, 16 Dec 2022 15:23:47 +0100 Subject: [PATCH] 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] --- src/osd/windows/window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp index e8eaa39256a..3cc991d7929 100644 --- a/src/osd/windows/window.cpp +++ b/src/osd/windows/window.cpp @@ -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); + } } } }