mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
Fix potential crash when using pillarbox default.lay but not specifying 3 shader chains
This commit is contained in:
parent
f263110d93
commit
20cc49bf61
@ -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 New Issue
Block a user