mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
video_core: gl_shader_manager: Only set shader samplers on fragment shader.
- Avoids unnecessary uniform errors.
This commit is contained in:
parent
3b2b9282d3
commit
e028eb91c0
1 changed files with 4 additions and 1 deletions
|
@ -177,7 +177,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue