diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 3ea08ef7b..28e490b3c 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -552,8 +552,7 @@ private: | |||
| 552 | } else if (std::holds_alternative<OperationNode>(*offset)) { | 552 | } else if (std::holds_alternative<OperationNode>(*offset)) { |
| 553 | // Indirect access | 553 | // Indirect access |
| 554 | const std::string final_offset = code.GenerateTemporary(); | 554 | const std::string final_offset = code.GenerateTemporary(); |
| 555 | code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4) & " + | 555 | code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4);"); |
| 556 | std::to_string(MAX_CONSTBUFFER_ELEMENTS - 1) + ';'); | ||
| 557 | return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()), | 556 | return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()), |
| 558 | final_offset, final_offset); | 557 | final_offset, final_offset); |
| 559 | 558 | ||