Fixing d3d color packing