CMaterial: Simplify Clone() a little
Given we use std::array now, we can perform a direct assignment instead of a loop.
This commit is contained in:
parent
28587fb622
commit
5b96480a45
|
@ -59,10 +59,8 @@ std::unique_ptr<CMaterial> CMaterial::Clone()
|
||||||
pOut->mVersion = mVersion;
|
pOut->mVersion = mVersion;
|
||||||
pOut->mOptions = mOptions;
|
pOut->mOptions = mOptions;
|
||||||
pOut->mVtxDesc = mVtxDesc;
|
pOut->mVtxDesc = mVtxDesc;
|
||||||
for (uint32 iKonst = 0; iKonst < 4; iKonst++)
|
pOut->mKonstColors = mKonstColors;
|
||||||
pOut->mKonstColors[iKonst] = mKonstColors[iKonst];
|
pOut->mTevColors = mTevColors;
|
||||||
for (uint32 iTev = 0; iTev < 4; iTev++)
|
|
||||||
pOut->mTevColors[iTev] = mTevColors[iTev];
|
|
||||||
pOut->mBlendSrcFac = mBlendSrcFac;
|
pOut->mBlendSrcFac = mBlendSrcFac;
|
||||||
pOut->mBlendDstFac = mBlendDstFac;
|
pOut->mBlendDstFac = mBlendDstFac;
|
||||||
pOut->mLightingEnabled = mLightingEnabled;
|
pOut->mLightingEnabled = mLightingEnabled;
|
||||||
|
|
Loading…
Reference in New Issue