summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author MooglyGuy <MooglyGuy@users.noreply.github.com>2022-12-16 15:23:47 +0100
committer GitHub <noreply@github.com>2022-12-16 15:23:47 +0100
commit13aa80cb00ddbf34cf237d53b33e3d400f7a14c4 (patch)
treef6c3d35b5e9d9d5ad32f04d65c896016141c4d93 /src
parent1a408445ad227a6f3ec7aace057d1c0913157dbf (diff)
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]
Diffstat (limited to 'src')
-rw-r--r--src/osd/windows/window.cpp5
1 files changed, 4 insertions, 1 deletions
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);
+ }
}
}
}