mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ public:
|
||||||
switch (decFmt_.posfmt) {
|
switch (decFmt_.posfmt) {
|
||||||
case DEC_FLOAT_3:
|
case DEC_FLOAT_3:
|
||||||
memcpy(pos, data_ + decFmt_.posoff, 12);
|
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;
|
break;
|
||||||
case DEC_S16_3:
|
case DEC_S16_3:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue