mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-27 00:10:31 +00:00
Fix crash in ocean-far with invalid DMA size (#3746)
DMA sizes are 16-bits, not 12-bits. This would cause rare crashes when the ocean far renderer uses more than this. I'm not really sure what the ocean far rendering is doing at this time, but it happens as stuff is loading in. There's a chance this fixes crashes in jak 2 as well, since we used to see errors that would be explained by this. Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
parent
af5cb9b1cb
commit
7553877e57
@ -37,7 +37,7 @@ struct DmaTag {
|
||||
DmaTag(u64 value) {
|
||||
spr = (value >> 63);
|
||||
addr = (value >> 32) & 0x7fffffff;
|
||||
qwc = value & 0xfff;
|
||||
qwc = value & 0xffff;
|
||||
kind = Kind((value >> 28) & 0b111);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user