notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpu_unai: fix a few potential crashes
[pcsx_rearmed.git]
/
plugins
/
gpu_neon
/
gpu.c
diff --git
a/plugins/gpu_neon/gpu.c
b/plugins/gpu_neon/gpu.c
index
03b0c71
..
c275d83
100644
(file)
--- a/
plugins/gpu_neon/gpu.c
+++ b/
plugins/gpu_neon/gpu.c
@@
-61,7
+61,7
@@
static noinline void decide_frameskip(void)
{
gpu.frameskip.frame_ready = !gpu.frameskip.active;
{
gpu.frameskip.frame_ready = !gpu.frameskip.active;
- if (!gpu.frameskip.active &&
*gpu.frameskip.advice
)
+ if (!gpu.frameskip.active &&
(*gpu.frameskip.advice || gpu.frameskip.set == 1)
)
gpu.frameskip.active = 1;
else
gpu.frameskip.active = 0;
gpu.frameskip.active = 1;
else
gpu.frameskip.active = 0;
@@
-133,7
+133,7
@@
void GPUwriteStatus(uint32_t data)
case 0x05:
gpu.screen.x = data & 0x3ff;
gpu.screen.y = (data >> 10) & 0x3ff;
case 0x05:
gpu.screen.x = data & 0x3ff;
gpu.screen.y = (data >> 10) & 0x3ff;
- if (gpu.frameskip.
enabled
)
+ if (gpu.frameskip.
set
)
decide_frameskip();
break;
case 0x06:
decide_frameskip();
break;
case 0x06: