Before this commit, GetProgramInterfaceiv for pname ACTIVE_RESOURCES and all the
Note that this means that in order to get a proper value, the shader needs to be linked, something that is not explicitly mentioned on ARB_program_interface_query spec, but comes from the general definition of active uniform. If the program is not linked we return 0.
v2: don't generate an error if the program is not linked, returning 0 active uniforms instead, plus extra spec references (Tapani Palli)
Fixes GL44-CTS.program_interface_query.subroutines-compute
07fe2d5 program_resource: subroutine active uniforms should return NumSubroutineUniforms
src/mesa/main/program_resource.c | 141 +++++++++++++++++++++++++++++++-------
1 file changed, 118 insertions(+), 23 deletions(-)
Upstream: cgit.freedesktop.org