naomi.cpp: fix the bg offset to be based on the param base so non-zero bases get backgrounds. (#8844)

This commit is contained in:
Jennifer Taylor 2021-11-19 19:32:56 -05:00 committed by GitHub
parent 70a5f17c48
commit 9525040110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2861,7 +2861,10 @@ void powervr2_device::render_to_accumulation_buffer(bitmap_rgb32 &bitmap, const
dc_state *state = machine().driver_data<dc_state>();
address_space &space = state->m_maincpu->space(AS_PROGRAM);
uint32_t c=space.read_dword(0x05000000+((isp_backgnd_t & 0xfffff8)>>1)+(3+3)*4);
// TODO: read ISP/TSP command from isp_background_t instead of assuming Gourad-shaded
// full-screen polygon.
uint32_t c=space.read_dword(0x05000000+(param_base&0xf00000)+((isp_backgnd_t&0xfffff8)>>1)+(3+3)*4);
bitmap.fill(c, cliprect);
// TODO: modifier volumes