Fix potential crash when using pillarbox default.lay but not specifying 3 shader chains

This commit is contained in:
therealmogminer@gmail.com 2016-05-27 15:38:45 +02:00
parent f263110d93
commit 20cc49bf61

View file

@ -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();
}
}
}