Skip to content
Snippets Groups Projects
Commit 4bda9693 authored by Subv's avatar Subv
Browse files

GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders.

parent c42b818c
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment