summaryrefslogtreecommitdiff
path: root/gst.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-04-26 22:16:12 -0700
committerMichael Pavone <pavone@retrodev.com>2017-04-26 22:16:12 -0700
commit3f81efc2e81b4118324f6043a7c6dc87426206bb (patch)
tree599ac17ac3a165c6a7af737153ab858ae14b4565 /gst.c
parent174396b1c744e9bd3ac438f8660f25cd59568b4a (diff)
Small tweak to how SAT cache updates are done. Mostly fixes the rotating cube scene in Overdrive 2
Diffstat (limited to 'gst.c')
-rw-r--r--gst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst.c b/gst.c
index 7ebeead..6737eee 100644
--- a/gst.c
+++ b/gst.c
@@ -251,7 +251,8 @@ uint8_t vdp_load_gst(vdp_context * context, FILE * state_file)
return 0;
}
for (int i = 0; i < VRAM_SIZE; i++) {
- write_vram_byte(context, i, tmp_buf[i]);
+ context->vdpmem[i] = tmp_buf[i];
+ vdp_check_update_sat_byte(context, i, tmp_buf[i]);
}
return 1;
}