diff options
Diffstat (limited to 'Source/UnitTests/VideoCommon/VertexLoaderTest.cpp')
| -rw-r--r-- | Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp index 853d690142..09d6ce3be5 100644 --- a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp +++ b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp @@ -80,7 +80,7 @@ protected: // Read unswapped. const float actual = m_dst.Read<float, false>(); - if (!actual || actual != actual) + if (!actual || std::isnan(actual)) EXPECT_EQ(std::bit_cast<u32>(expected), std::bit_cast<u32>(actual)); else EXPECT_EQ(expected, actual); |
