arb_shader_subroutine: check active subroutine limit
authorDave Airlie <airlied@redhat.com>
Tue, 28 Jul 2015 06:11:06 +0000 (07:11 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 23 May 2016 06:18:25 +0000 (16:18 +1000)
commitba3414d832c0661e6b827641dbd33a2829d1812e
tree8623dcef62af18d1de5ecfd3f99cbdb42dd24bdb
parent74e71cbfcb2950d0aa59e5b05ab817e93dfad4ee
arb_shader_subroutine: check active subroutine limit

_mesa_GetActiveSubroutineUniformiv needs to check
against the number of types here.

Noticed while playing with ogl conform.

Reviewed-by: Chris Forbes <chrisforbes@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/shaderapi.c