Creates a new material with the configuration copied from the source material.
Use cogl_pipeline_copy
instead
We would strongly advise developers to always aim to use copy instead of Material whenever there will be any similarity between two materials. Copying a material helps Cogl keep track of a materials ancestry which we may use to help minimize GPU state changes.
this |
a |
a pointer to the newly allocated |