summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
authorGravatarGravatar MooglyGuy <therealmogminer@gmail.com>2019-10-22 20:30:59 +0200
committerGravatarGravatar MooglyGuy <therealmogminer@gmail.com>2019-10-22 20:31:12 +0200
commit10a76b5e3d4caab889d401937acdf310614f6648 (patch)
tree9f4277355ac65c91dc7234fd64fe1877b0de0dbd /src/osd
parentad9b059a96fb7e32d9369db0150bc23154a090d2 (diff)
-bgfx: Fix crash when scrolling current effect to 'none', nw
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/render/bgfx/chainmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/chainmanager.cpp b/src/osd/modules/render/bgfx/chainmanager.cpp
index aa16e075bda..aa7adb4b5fb 100644
--- a/src/osd/modules/render/bgfx/chainmanager.cpp
+++ b/src/osd/modules/render/bgfx/chainmanager.cpp
@@ -502,7 +502,7 @@ uint32_t chain_manager::update_screen_textures(uint32_t view, render_primitive *
}
bgfx_chain* chain = screen_chain(screen);
- if (needs_conversion && !chain->has_converter())
+ if (chain && needs_conversion && !chain->has_converter())
{
chain->prepend_converter(m_converters[src_format], *this);
}