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(); - if (!actual || actual != actual) + if (!actual || std::isnan(actual)) EXPECT_EQ(std::bit_cast(expected), std::bit_cast(actual)); else EXPECT_EQ(expected, actual);