summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-28 17:27:44 +0200
committerGitHub <noreply@github.com>2018-08-28 17:27:44 +0200
commit72e4499a9e01303e155d42ce39c72a4d5fccc7af (patch)
tree599bd25d5b573f466731227bb5c21f211755b56f /src
parentMerge pull request #1190 from FearlessTobi/im-so-retarded (diff)
parentgl_shader_cache: Remove unused program_code vector in GetShaderAddress() (diff)
downloadyuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.tar
yuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.tar.gz
yuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.tar.bz2
yuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.tar.lz
yuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.tar.xz
yuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.tar.zst
yuzu-72e4499a9e01303e155d42ce39c72a4d5fccc7af.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 3c3d1d35e..326a901ba 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -14,9 +14,8 @@ namespace OpenGL {
/// Gets the address for the specified shader stage program
static Tegra::GPUVAddr GetShaderAddress(Maxwell::ShaderProgram program) {
auto& gpu = Core::System::GetInstance().GPU().Maxwell3D();
-
- GLShader::ProgramCode program_code(GLShader::MAX_PROGRAM_CODE_LENGTH);
auto& shader_config = gpu.regs.shader_config[static_cast<size_t>(program)];
+
return gpu.regs.code_address.CodeAddress() + shader_config.offset;
}