Henri Verbeet : wined3d: Pass a texture instead of a surface to upload_palette().