mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-23 18:30:46 +00:00
pos[2] is limited between 0 and 65535
fix the black screen issue for Toaru Majutsu no Index, and Toaru Kagaku no Railgun.
This commit is contained in:
parent
e035a1d361
commit
83b2849192
@ -192,6 +192,9 @@ public:
|
||||
switch (decFmt_.posfmt) {
|
||||
case DEC_FLOAT_3:
|
||||
memcpy(pos, data_ + decFmt_.posoff, 12);
|
||||
// pos[2] is limited between 0 and 65535
|
||||
if (pos[2] < 0.0 || pos[2] > 65535.0)
|
||||
pos[2] = 0.0;
|
||||
break;
|
||||
case DEC_S16_3:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user