summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-04-10 02:02:11 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-04-10 02:02:11 +0200
commitc9f35d96be4320a9507e637d1e882ffc75a80478 (patch)
tree807f9989149c54f1c10890183f1db33c3e552f3b
parentMerge pull request #2371 from lioncash/pagetable (diff)
downloadyuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.tar
yuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.tar.gz
yuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.tar.bz2
yuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.tar.lz
yuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.tar.xz
yuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.tar.zst
yuzu-c9f35d96be4320a9507e637d1e882ffc75a80478.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
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);