glsl: fix explicit location validation for doubles
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 23 May 2016 03:07:14 +0000 (13:07 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 24 May 2016 01:30:51 +0000 (11:30 +1000)
commit2d9308012c5da0891b099b5082c17d28bc51bb09
tree717597cfa51db78a2dee1cc5cf98036b7e24f7cb
parent33397bf7fdca0b08924078189f18fa34d030ac67
glsl: fix explicit location validation for doubles

Previously we would fail to find a match for the second half of a
dvec4 as 'i' would get incremented to 1 before we added the var to
the array at component 0.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/compiler/glsl/link_varyings.cpp