diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-21 18:21:42 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-23 01:28:49 +0100 |
commit | 36d9b409fc8793b617c4ce5525d8dc297cb4d579 (patch) | |
tree | 33e3f8cd5a039acdacbf16c80436cbd8ff3461f6 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_rasterizer: Add missing cbuf counter reset on compute (diff) | |
download | yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.tar yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.tar.gz yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.tar.bz2 yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.tar.lz yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.tar.xz yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.tar.zst yuzu-36d9b409fc8793b617c4ce5525d8dc297cb4d579.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index f2494e0e2..de7b7ce93 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -857,13 +857,13 @@ bool RasterizerOpenGL::AccelerateDisplay(const Tegra::FramebufferConfig& config, void RasterizerOpenGL::SetupDrawConstBuffers(std::size_t stage_index, const Shader& shader) { MICROPROFILE_SCOPE(OpenGL_UBO); - const u32 base_binding = device.GetBaseBindings(stage_index).uniform_buffer; const auto& stages = system.GPU().Maxwell3D().state.shader_stages; const auto& shader_stage = stages[stage_index]; + u32 binding = device.GetBaseBindings(stage_index).uniform_buffer; for (const auto& entry : shader->GetShaderEntries().const_buffers) { const auto& buffer = shader_stage.const_buffers[entry.GetIndex()]; - SetupConstBuffer(base_binding + entry.GetIndex(), buffer, entry); + SetupConstBuffer(binding++, buffer, entry); } } |