diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-10 03:23:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 03:23:24 +0200 |
commit | ed9dba89d32cf9867ebc67317dd0b33112f91ae9 (patch) | |
tree | eb81dc41638862429a6a2ac62ff3949ddca09120 | |
parent | Merge pull request #2353 from lioncash/surface (diff) | |
parent | Remove bounding in LD_C (diff) | |
download | yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.gz yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.bz2 yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.lz yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.xz yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.zst yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.zip |
-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: } else if (std::holds_alternative<OperationNode>(*offset)) { // Indirect access 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()), final_offset, final_offset); |