diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-05 00:20:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 00:20:14 +0200 |
commit | a1ef02c3e6f40eb98b1608229451943f8e64f861 (patch) | |
tree | 3ffdcceaf003fdc23244bfb4b639a603ea4aaf57 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1178 from DarkLordZach/nsp (diff) | |
parent | gl_shader_cache: Use an u32 for the binding point cache. (diff) | |
download | yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.tar yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.tar.gz yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.tar.bz2 yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.tar.lz yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.tar.xz yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.tar.zst yuzu-a1ef02c3e6f40eb98b1608229451943f8e64f861.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 e260c9140..7ee3f2ae7 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -709,7 +709,7 @@ std::tuple<u8*, GLintptr, u32> RasterizerOpenGL::SetupConstBuffers(u8* buffer_pt // Now configure the bindpoint of the buffer inside the shader glUniformBlockBinding(shader->GetProgramHandle(), - shader->GetProgramResourceIndex(used_buffer.GetName()), + shader->GetProgramResourceIndex(used_buffer), current_bindpoint + bindpoint); } @@ -733,7 +733,7 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, Shader& shader, // Bind the uniform to the sampler. - glProgramUniform1i(shader->GetProgramHandle(), shader->GetUniformLocation(entry.GetName()), + glProgramUniform1i(shader->GetProgramHandle(), shader->GetUniformLocation(entry), current_bindpoint); const auto texture = maxwell3d.GetStageTexture(entry.GetStage(), entry.GetOffset()); |