wined3d: Execute all CS commands before setting palette entries.