summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp
diff options
context:
space:
mode:
authorGravatar wwylele2017-07-20 22:47:53 +0300
committerGravatar wwylele2017-07-20 22:47:53 +0300
commit98cd5164c508e7cc5eedee1d6541948e341f32a9 (patch)
tree066af23260bec93ddb2c29a04194a22fcd5d9ef5 /src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp
parentMerge pull request #2804 from Kloen/theming (diff)
downloadyuzu-98cd5164c508e7cc5eedee1d6541948e341f32a9.tar.gz
yuzu-98cd5164c508e7cc5eedee1d6541948e341f32a9.tar.xz
yuzu-98cd5164c508e7cc5eedee1d6541948e341f32a9.zip
debugger/shader: fix inverted uniform flow control
Diffstat (limited to 'src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp')
-rw-r--r--src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp
index e3f3194db..f8584dce7 100644
--- a/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp
+++ b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp
@@ -255,7 +255,7 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
255 output << '('; 255 output << '(';
256 256
257 if (instr.flow_control.op != instr.flow_control.JustY) { 257 if (instr.flow_control.op != instr.flow_control.JustY) {
258 if (instr.flow_control.refx) 258 if (!instr.flow_control.refx)
259 output << '!'; 259 output << '!';
260 output << "cc.x"; 260 output << "cc.x";
261 } 261 }
@@ -267,7 +267,7 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
267 } 267 }
268 268
269 if (instr.flow_control.op != instr.flow_control.JustX) { 269 if (instr.flow_control.op != instr.flow_control.JustX) {
270 if (instr.flow_control.refy) 270 if (!instr.flow_control.refy)
271 output << '!'; 271 output << '!';
272 output << "cc.y"; 272 output << "cc.y";
273 } 273 }