mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
glsl: make sure to only add subroutines to resource list
Over looked in 763cd8c080.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
f6b3c163f9
commit
8e4cf900f0
1 changed files with 2 additions and 1 deletions
|
|
@ -3776,7 +3776,8 @@ build_program_resource_list(struct gl_shader_program *shProg)
|
|||
continue;
|
||||
|
||||
for (int j = MESA_SHADER_VERTEX; j < MESA_SHADER_STAGES; j++) {
|
||||
if (!shProg->UniformStorage[i].opaque[j].active)
|
||||
if (!shProg->UniformStorage[i].opaque[j].active ||
|
||||
!shProg->UniformStorage[i].type->is_subroutine())
|
||||
continue;
|
||||
|
||||
type = _mesa_shader_stage_to_subroutine_uniform((gl_shader_stage)j);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue