summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2019-11-06 01:06:57 +1100
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2019-11-06 01:06:57 +1100
commit06f99c21a08fe76ae833a5587d19c33ed0a035f1 (patch)
tree9c3d021d3e47f81d1df7a8de3a9dacd31d85f7c0 /src/osd
parent2012b38e1e7cb669ddecf684d0cbdb8c2d214292 (diff)
bgfx: fix tgmj crash on resolution change (GitHub #5857) [Ryan Holtz
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/render/bgfx/chainmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/chainmanager.cpp b/src/osd/modules/render/bgfx/chainmanager.cpp
index e6d046db69c..313c78f3623 100644
--- a/src/osd/modules/render/bgfx/chainmanager.cpp
+++ b/src/osd/modules/render/bgfx/chainmanager.cpp
@@ -491,6 +491,14 @@ uint32_t chain_manager::update_screen_textures(uint32_t view, render_primitive *
m_screen_palettes.push_back(palette);
}
}
+ else
+ {
+ m_screen_textures[screen] = texture;
+ if (palette)
+ {
+ m_screen_palettes[screen] = palette;
+ }
+ }
}
else
{