summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/window.cpp
diff options
context:
space:
mode:
author Giuseppe Gorgoglione <gorgogsp@gmail.com>2016-07-15 13:32:36 +0200
committer Giuseppe Gorgoglione <gorgogsp@gmail.com>2016-07-18 17:21:09 +0200
commit14f5329fd4e1a8c09893864a495af55d82368068 (patch)
tree0dff4ba10d9cc2db8e8cbf51585f7dc0994f5391 /src/osd/windows/window.cpp
parent1b60ff15bbb53e4077ae40260a1a58643a72026b (diff)
BGFX: fix crash when bgfx effect folder is not present or incomplete
BGFX renderer requires some effects also when post-processing is disabled. If they are not available, MAME complains about missing effect files, but then goes on and crashes soon after printing the backtrace. This fix just exits gracefully when effect files are incomplete and falls back to a different renderer if the bgfx folder is missing at all, warning the user in advance.
Diffstat (limited to 'src/osd/windows/window.cpp')
-rw-r--r--src/osd/windows/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp
index cda1adb7562..b1cc369c0af 100644
--- a/src/osd/windows/window.cpp
+++ b/src/osd/windows/window.cpp
@@ -172,7 +172,7 @@ bool windows_osd_interface::window_init()
error = renderer_gdi::init(machine());
break;
case VIDEO_MODE_BGFX:
- renderer_bgfx::init(machine());
+ error = renderer_bgfx::init(machine());
break;
#if (USE_OPENGL)
case VIDEO_MODE_OPENGL: