better default for address tracking
This commit is contained in:
parent
7111cc9761
commit
11a8e96564
@ -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)
|
||||
{
|
||||
|
||||
@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user