diff options
author | twinaphex | 2013-01-10 03:06:17 +0100 |
---|---|---|
committer | twinaphex | 2013-01-10 03:06:17 +0100 |
commit | e5f4d90401d099d5191f95e9f771ab5a81c87ed8 (patch) | |
tree | 8de3efcfd7bf5111ea62a43ecd7db558f2ec8350 /plugins/gpu-gles | |
parent | ac7b2a33ddb2392582c50d29c772e9e99cd762c9 (diff) | |
parent | d77e74383a9134e51c31607cfddf4dcd3535a0ae (diff) | |
download | pcsx_rearmed-e5f4d90401d099d5191f95e9f771ab5a81c87ed8.tar.gz pcsx_rearmed-e5f4d90401d099d5191f95e9f771ab5a81c87ed8.tar.bz2 pcsx_rearmed-e5f4d90401d099d5191f95e9f771ab5a81c87ed8.zip |
Merge git://github.com/notaz/pcsx_rearmed
Diffstat (limited to 'plugins/gpu-gles')
-rw-r--r-- | plugins/gpu-gles/gpulib_if.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/gpu-gles/gpulib_if.c b/plugins/gpu-gles/gpulib_if.c index 068dc41..2090553 100644 --- a/plugins/gpu-gles/gpulib_if.c +++ b/plugins/gpu-gles/gpulib_if.c @@ -549,7 +549,12 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd) while(1) { - if((*list_position & 0xf000f000) == 0x50005000 || list_position >= list_end) + if(list_position >= list_end) { + cmd = -1; + goto breakloop; + } + + if((*list_position & 0xf000f000) == 0x50005000) break; list_position++; @@ -567,7 +572,12 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd) while(1) { - if((*list_position & 0xf000f000) == 0x50005000 || list_position >= list_end) + if(list_position >= list_end) { + cmd = -1; + goto breakloop; + } + + if((*list_position & 0xf000f000) == 0x50005000) break; list_position += 2; @@ -593,6 +603,7 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd) } } +breakloop: gpu.ex_regs[1] &= ~0x1ff; gpu.ex_regs[1] |= lGPUstatusRet & 0x1ff; |