wined3d: Cleanup shader constants code a little bit.