mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-04 10:18:36 +00:00
If the format is not one of the expected ones, just return rather than
proceeding with uninitialized data. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5495 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f38ba8fcfe
commit
8949c1e309
3 changed files with 12 additions and 1 deletions
|
@ -516,6 +516,9 @@ void Tev::Indirect(unsigned int stageNum, s32 s, s32 t)
|
|||
indcoord[2] = (indmap[GRN_C] & 0x07) + bias[2];
|
||||
AlphaBump = AlphaBump & 0xf8;
|
||||
break;
|
||||
default:
|
||||
PanicAlert("Tev::Indirect");
|
||||
return;
|
||||
}
|
||||
|
||||
s64 indtevtrans[2] = { 0,0 };
|
||||
|
@ -547,6 +550,8 @@ void Tev::Indirect(unsigned int stageNum, s32 s, s32 t)
|
|||
indtevtrans[0] = s * indcoord[1];
|
||||
indtevtrans[1] = t * indcoord[1];
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
indtevtrans[0] = shift >= 0 ? indtevtrans[0] >> shift : indtevtrans[0] << -shift;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue