Преглед на файлове

Remove bounding in LD_C

Fernando Sahmkow преди 7 години
родител
ревизия
c9f35d96be
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 1 - 2
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -552,8 +552,7 @@ private:
             } else if (std::holds_alternative<OperationNode>(*offset)) {
             } else if (std::holds_alternative<OperationNode>(*offset)) {
                 // Indirect access
                 // Indirect access
                 const std::string final_offset = code.GenerateTemporary();
                 const std::string final_offset = code.GenerateTemporary();
-                code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4) & " +
-                             std::to_string(MAX_CONSTBUFFER_ELEMENTS - 1) + ';');
+                code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4);");
                 return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()),
                 return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()),
                                    final_offset, final_offset);
                                    final_offset, final_offset);