glsl: assign hidden uniforms their slot id earlier
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 2 Sep 2015 01:29:11 +0000 (11:29 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 17 Sep 2015 01:26:45 +0000 (11:26 +1000)
commit9788700caf61ff8beee5fd836f5efd98a931a976
treefeacd2b73d32ec6d2f5ee1681d058a7fe538d05a
parent874a0217fd8bba83b0bc2448f5156fdb82f77d7c
glsl: assign hidden uniforms their slot id earlier

This is required so that the next patch can safely assign the slot id
to the var.

The ids are now assigned in the order we want before allocating storage
so there is no need to sort the storage array and move things around.

V2: rename variable to make code easier to follow as suggested by Jason

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/link_uniforms.cpp