diff --git a/src/video_core/pica_types.h b/src/video_core/pica_types.h index 2eafa7e9e4..947e27e2eb 100644 --- a/src/video_core/pica_types.h +++ b/src/video_core/pica_types.h @@ -60,8 +60,8 @@ public: Float operator*(const Float& flt) const { float result = value * flt.ToFloat32(); // PICA gives 0 instead of NaN when multiplying by inf - if (!std::isnan(value) && !std::isnan(flt.ToFloat32())) - if (std::isnan(result)) + if (std::isnan(result)) + if (!std::isnan(value) && !std::isnan(flt.ToFloat32())) result = 0.f; return Float::FromFloat32(result); }