Release a reference to an MFMaterial and destroy when the reference count reaches 0.
- Parameters
-
pMaterial | Material instance to destroy. |
- Returns
- The new number of references to the material. If 0 is returned, there are no more instances and the material will be destroyed.