Fix shader-interpreter FLR indexing bug

`3 - 1` should be `3 - i`
This commit is contained in:
Wunkolo 2024-03-11 19:07:59 -07:00
parent 9959fd88b5
commit 841cf68d99
No known key found for this signature in database

View file

@ -223,7 +223,7 @@ void PICAShader::flr(u32 instruction) {
u32 componentMask = operandDescriptor & 0xf;
for (int i = 0; i < 4; 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()));
}
}
}