Henri Verbeet : wined3d: Take the resource data type into account in shader_glsl_gen_sample_code() .