Browse Source

debugger/shader: fix inverted uniform flow control

nce_cpp
wwylele 9 years ago
parent
commit
69b544d73a
  1. 4
      src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp

4
src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp

@ -255,7 +255,7 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
output << '('; output << '(';
if (instr.flow_control.op != instr.flow_control.JustY) { if (instr.flow_control.op != instr.flow_control.JustY) {
if (instr.flow_control.refx)
if (!instr.flow_control.refx)
output << '!'; output << '!';
output << "cc.x"; output << "cc.x";
} }
@ -267,7 +267,7 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
} }
if (instr.flow_control.op != instr.flow_control.JustX) { if (instr.flow_control.op != instr.flow_control.JustX) {
if (instr.flow_control.refy)
if (!instr.flow_control.refy)
output << '!'; output << '!';
output << "cc.y"; output << "cc.y";
} }

Loading…
Cancel
Save