summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-10 03:23:24 +0200
committerGitHub <noreply@github.com>2019-04-10 03:23:24 +0200
commited9dba89d32cf9867ebc67317dd0b33112f91ae9 (patch)
treeeb81dc41638862429a6a2ac62ff3949ddca09120 /src/video_core
parentMerge pull request #2353 from lioncash/surface (diff)
parentRemove bounding in LD_C (diff)
downloadyuzu-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
Diffstat (limited to 'src/video_core')
-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);