mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Fix shader-interpreter FLR indexing bug
`3 - 1` should be `3 - i`
This commit is contained in:
parent
9959fd88b5
commit
841cf68d99
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ void PICAShader::flr(u32 instruction) {
|
||||||
u32 componentMask = operandDescriptor & 0xf;
|
u32 componentMask = operandDescriptor & 0xf;
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
if (componentMask & (1 << i)) {
|
if (componentMask & (1 << i)) {
|
||||||
destVector[3 - i] = f24::fromFloat32(std::floor(srcVector[3 - 1].toFloat32()));
|
destVector[3 - i] = f24::fromFloat32(std::floor(srcVector[3 - i].toFloat32()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue