summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderBase.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-05-04 08:24:59 +0100
committerGitHub <noreply@github.com>2024-05-04 08:24:59 +0100
commitc442c0d5e5dc993562b43871a7548d64bc82a1ad (patch)
treef8d0e97e62b7212788ef1d121598e160fb163662 /Source/Core/VideoCommon/VertexLoaderBase.cpp
parentc23562b7b5f43d27dab62ce6e3a25a2c3c35aed4 (diff)
parentfbbfea8e8e536800a6a911eb90cecdd1f343f9e3 (diff)
Merge pull request #10957 from Pokechu22/std-bitcast
Replace Common::BitCast with std::bit_cast
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp
index 11ac3833c7..40c82145b0 100644
--- a/Source/Core/VideoCommon/VertexLoaderBase.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp
@@ -113,7 +113,7 @@ public:
// Some games (e.g. Donkey Kong Country Returns) have a few draws that contain NaN.
// Since NaN != NaN, we need to compare the bits instead.
const auto bit_equal = [](float val_a, float val_b) {
- return Common::BitCast<u32>(val_a) == Common::BitCast<u32>(val_b);
+ return std::bit_cast<u32>(val_a) == std::bit_cast<u32>(val_b);
};
// The last element is allowed to be garbage for SIMD overwrites.