diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-05 17:29:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 17:29:17 +0200 |
commit | 8b815877a6f8b0c1b80496a485511f15d1d86684 (patch) | |
tree | e8297e0d3b51898ad891b0ad56cbd99206117b22 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #621 from Subv/psetp_ (diff) | |
parent | GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders. (diff) | |
download | yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.tar yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.tar.gz yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.tar.bz2 yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.tar.lz yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.tar.xz yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.tar.zst yuzu-8b815877a6f8b0c1b80496a485511f15d1d86684.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 3c3657d9d..bacb389e1 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -686,7 +686,10 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, GLuint program, // Bind the uniform to the sampler. GLint uniform = glGetUniformLocation(program, entry.GetName().c_str()); - ASSERT(uniform != -1); + if (uniform == -1) { + continue; + } + glProgramUniform1i(program, uniform, current_bindpoint); const auto texture = maxwell3d.GetStageTexture(entry.GetStage(), entry.GetOffset()); |