wined3d: Introduce a "state" variable in shader_glsl_load_constants().