Просмотр исходного кода

debugger/shader: fix inverted uniform flow control

wwylele 9 лет назад
Родитель
Сommit
98cd5164c5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp

+ 2 - 2
src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp

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