Fix subgroup regression whereby gl_* variables were not available in geometry or tessellation stages.