UNPACK D3DCOLOR and EXTRACT INT32 variable.
Fixing type mismatches.