better default for address tracking

This commit is contained in:
Logan McNaughton 2025-04-02 14:06:43 +02:00
parent 7111cc9761
commit 11a8e96564
2 changed files with 4 additions and 1 deletions

View File

@ -221,6 +221,9 @@ void rdp_new_processor(GFX_INFO _gfx_info)
sync_signal = 0;
rdram_dirty.assign(gfx_info.RDRAM_SIZE / 8, false);
rdp_device.frame_buffer_info.framebuffer_address = rdram_dirty.size();
rdp_device.frame_buffer_info.depthbuffer_address = rdram_dirty.size();
rdp_device.frame_buffer_info.texture_address = rdram_dirty.size();
if (processor)
{

View File

@ -110,8 +110,8 @@ pub fn load_state(device: &mut device::Device, rdp_state: *const u8) {
crt: device.ui.config.video.crt,
};
unsafe {
rdp_load_state(rdp_state);
rdp_new_processor(gfx_info);
rdp_load_state(rdp_state);
for reg in 0..device::vi::VI_REGS_COUNT {
rdp_set_vi_register(reg, device.vi.regs[reg as usize])
}