video_core: gl_shader_manager: Only set shader samplers on fragment shader.

- Avoids unnecessary uniform errors.
This commit is contained in:
bunnei 2019-10-14 22:21:24 -04:00
parent de874b608d
commit 28ce38e996

View File

@ -176,7 +176,10 @@ public:
OGLProgram& program = boost::get<OGLProgram>(shader_or_program);
program.Create(true, {shader.handle});
SetShaderUniformBlockBindings(program.handle);
SetShaderSamplerBindings(program.handle);
if (type == GL_FRAGMENT_SHADER) {
SetShaderSamplerBindings(program.handle);
}
}
}