diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-23 08:19:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-23 08:19:00 +0200 |
commit | c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef (patch) | |
tree | c09b3962a8fb306a40f474cac005e5b5316eb654 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1156 from Lakumakkara/lop3 (diff) | |
parent | gl_shader_gen: Make ShaderSetup's constructor explicit (diff) | |
download | yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.tar yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.tar.gz yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.tar.bz2 yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.tar.lz yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.tar.xz yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.tar.zst yuzu-c7f2fb2151a5cff3e7626a0ec3cb75c553f41aef.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index c67eabe65..516e1b50f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -181,7 +181,7 @@ static GLShader::ProgramCode GetShaderProgramCode(Maxwell::ShaderProgram program auto& gpu = Core::System::GetInstance().GPU().Maxwell3D(); // Fetch program code from memory - GLShader::ProgramCode program_code; + GLShader::ProgramCode program_code(GLShader::MAX_PROGRAM_CODE_LENGTH); auto& shader_config = gpu.regs.shader_config[static_cast<size_t>(program)]; const u64 gpu_address{gpu.regs.code_address.CodeAddress() + shader_config.offset}; const boost::optional<VAddr> cpu_address{gpu.memory_manager.GpuToCpuAddress(gpu_address)}; |