mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
Fix potential crash when using pillarbox default.lay but not specifying 3 shader chains
This commit is contained in:
parent
f263110d93
commit
20cc49bf61
1 changed files with 8 additions and 2 deletions
|
@ -300,7 +300,10 @@ void chain_manager::process_screen_quad(uint32_t view, uint32_t screen, render_p
|
|||
{
|
||||
for (bgfx_chain* chain : m_screen_chains)
|
||||
{
|
||||
chain->repopulate_targets();
|
||||
if (chain != nullptr)
|
||||
{
|
||||
chain->repopulate_targets();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -452,7 +455,10 @@ uint32_t chain_manager::handle_screen_chains(uint32_t view, render_primitive *st
|
|||
{
|
||||
for (bgfx_chain* chain : m_screen_chains)
|
||||
{
|
||||
chain->repopulate_targets();
|
||||
if (chain != nullptr)
|
||||
{
|
||||
chain->repopulate_targets();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue