summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-27 11:53:40 +0100
committerLioncash <mathew1800@gmail.com>2019-11-27 11:53:43 +0100
commit9403979c2210c0c75434991fd02e102b971d92fb (patch)
treef606e543bcc33a9164b0f5841df32bfc78c01a44 /src
parentvideo_core/const_buffer_locker: Remove unused includes (diff)
downloadyuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar
yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.gz
yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.bz2
yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.lz
yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.xz
yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.zst
yuzu-9403979c2210c0c75434991fd02e102b971d92fb.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/const_buffer_locker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/shader/const_buffer_locker.cpp b/src/video_core/shader/const_buffer_locker.cpp
index 5dce43b1f..a4a0319eb 100644
--- a/src/video_core/shader/const_buffer_locker.cpp
+++ b/src/video_core/shader/const_buffer_locker.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include <algorithm>
+#include <tuple>
#include "common/common_types.h"
#include "video_core/engines/maxwell_3d.h"
@@ -101,8 +102,8 @@ bool ConstBufferLocker::IsConsistent() const {
}
bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const {
- return keys == rhs.keys && bound_samplers == rhs.bound_samplers &&
- bindless_samplers == rhs.bindless_samplers;
+ return std::tie(keys, bound_samplers, bindless_samplers) ==
+ std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers);
}
} // namespace VideoCommon::Shader