[PATCH 4/5] wined3d: Optimize setting shader constants in wined3d_stateblock_capture().