gl/shader: Pack parameters for program

+ I pray to Madoka this works