Current implementation of software gamma correction is linear scaling, not gamma correction.
And when setting materials up manually, TextureUnitState always set gamma value is 1.0, we cannot apply gamma correction in this case.
This patch fix and enhance these.
for v1-9 branch