diff options
| author | bunnei <bunneidev@gmail.com> | 2018-09-04 18:20:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-04 18:20:14 -0400 |
| commit | a1ef02c3e6f40eb98b1608229451943f8e64f861 (patch) | |
| tree | 3ffdcceaf003fdc23244bfb4b639a603ea4aaf57 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
| parent | faa9e066aba320bcd38fd023ee58c6f9e1d3efdd (diff) | |
| parent | 99a71580c4356c51bcb5f18b10be55f1e62a65e5 (diff) | |
Merge pull request #1240 from degasus/optimizations
gl_shader_cache: Use an u32 for the binding point cache.
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()); |
