summaryrefslogtreecommitdiffstats
path: root/src/video_core/guest_driver.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-01-08 16:46:36 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2020-01-24 21:43:30 +0100
commit64496f24569ecc23ebbb816725f27142867b1468 (patch)
treee7dd660d9bdf3afc7a90a35314c18b29792e119a /src/video_core/guest_driver.cpp
parentShader_IR: Allow constant access of guest driver. (diff)
downloadyuzu-64496f24569ecc23ebbb816725f27142867b1468.tar
yuzu-64496f24569ecc23ebbb816725f27142867b1468.tar.gz
yuzu-64496f24569ecc23ebbb816725f27142867b1468.tar.bz2
yuzu-64496f24569ecc23ebbb816725f27142867b1468.tar.lz
yuzu-64496f24569ecc23ebbb816725f27142867b1468.tar.xz
yuzu-64496f24569ecc23ebbb816725f27142867b1468.tar.zst
yuzu-64496f24569ecc23ebbb816725f27142867b1468.zip
Diffstat (limited to 'src/video_core/guest_driver.cpp')
-rw-r--r--src/video_core/guest_driver.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/video_core/guest_driver.cpp b/src/video_core/guest_driver.cpp
index 1ded52905..6adef459e 100644
--- a/src/video_core/guest_driver.cpp
+++ b/src/video_core/guest_driver.cpp
@@ -3,7 +3,7 @@
// Refer to the license.txt file included.
#include <algorithm>
-#include <climits>
+#include <limits>
#include "video_core/guest_driver.h"
@@ -17,10 +17,9 @@ void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32>&& bound_offse
if (size < 2) {
return;
}
- std::sort(bound_offsets.begin(), bound_offsets.end(),
- [](const u32& a, const u32& b) { return a < b; });
- u32 min_val = UINT_MAX;
- for (std::size_t i = 1; i < size; i++) {
+ std::sort(bound_offsets.begin(), bound_offsets.end(), std::less{});
+ u32 min_val = std::numeric_limits<u32>::max();
+ for (std::size_t i = 1; i < size; ++i) {
if (bound_offsets[i] == bound_offsets[i - 1]) {
continue;
}