summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-16 17:40:58 +0200
committerLioncash <mathew1800@gmail.com>2019-07-19 03:03:30 +0200
commit6885e7e7ec4919cd66ee0294fdbd9aea8935c50d (patch)
tree5d4aaabe03b910d43b0cb51e906e3eeb39541909 /src
parentvideo_core: Resolve -Wreorder warnings (diff)
downloadyuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.tar
yuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.tar.gz
yuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.tar.bz2
yuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.tar.lz
yuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.tar.xz
yuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.tar.zst
yuzu-6885e7e7ec4919cd66ee0294fdbd9aea8935c50d.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/control_flow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp
index 6a92c540e..83549c082 100644
--- a/src/video_core/shader/control_flow.cpp
+++ b/src/video_core/shader/control_flow.cpp
@@ -379,8 +379,8 @@ bool TryQuery(CFGRebuildState& state) {
// consumes a label. Schedule new queries accordingly
if (block.visited) {
BlockStack& stack = state.stacks[q.address];
- const bool all_okay = (stack.ssy_stack.size() == 0 || q.ssy_stack == stack.ssy_stack) &&
- (stack.pbk_stack.size() == 0 || q.pbk_stack == stack.pbk_stack);
+ const bool all_okay = (stack.ssy_stack.empty() || q.ssy_stack == stack.ssy_stack) &&
+ (stack.pbk_stack.empty() || q.pbk_stack == stack.pbk_stack);
state.queries.pop_front();
return all_okay;
}