diff options
| author | 2018-07-04 15:20:12 -0500 | |
|---|---|---|
| committer | 2018-07-04 15:20:12 -0500 | |
| commit | 4bda9693be490cdca498483e2d196afb5d2294b5 (patch) | |
| tree | beecdf4a6acfbba759d0e7d6e606428f51cfd4a1 /src | |
| parent | GPU: Corrected the decoding for the TEX shader instruction. (diff) | |
| download | yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.gz yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.xz yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.zip | |
GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders.
Diffstat (limited to 'src')
| -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 e516eb1ad..8072c8cb2 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, | |||
| 686 | 686 | ||
| 687 | // Bind the uniform to the sampler. | 687 | // Bind the uniform to the sampler. |
| 688 | GLint uniform = glGetUniformLocation(program, entry.GetName().c_str()); | 688 | GLint uniform = glGetUniformLocation(program, entry.GetName().c_str()); |
| 689 | ASSERT(uniform != -1); | 689 | if (uniform == -1) { |
| 690 | continue; | ||
| 691 | } | ||
| 692 | |||
| 690 | glProgramUniform1i(program, uniform, current_bindpoint); | 693 | glProgramUniform1i(program, uniform, current_bindpoint); |
| 691 | 694 | ||
| 692 | const auto texture = maxwell3d.GetStageTexture(entry.GetStage(), entry.GetOffset()); | 695 | const auto texture = maxwell3d.GetStageTexture(entry.GetStage(), entry.GetOffset()); |