diff options
author | Markus Wick <markus@selfnet.de> | 2018-09-04 20:55:34 +0200 |
---|---|---|
committer | Markus Wick <markus@selfnet.de> | 2018-09-04 21:04:41 +0200 |
commit | 99a71580c4356c51bcb5f18b10be55f1e62a65e5 (patch) | |
tree | 8e32bd63d0d5e0297208959bbb9b6851ab39ba8f /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1238 from lioncash/explicit (diff) | |
download | yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.tar yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.tar.gz yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.tar.bz2 yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.tar.lz yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.tar.xz yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.tar.zst yuzu-99a71580c4356c51bcb5f18b10be55f1e62a65e5.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()); |