Paul Gofman : wined3d: Factor out wined3d_get_material_colour_source() function.