浏览代码

GC fix on runtime3.5 (40B)

/stochastic_alpha_test
Thomas 7 年前
当前提交
a2cc5740
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Sky/SkySettings.cs

4
ScriptableRenderPipeline/HDRenderPipeline/Sky/SkySettings.cs


hash = hash * 23 + rotation.GetHashCode();
hash = hash * 23 + exposure.GetHashCode();
hash = hash * 23 + multiplier.GetHashCode();
hash = hash * 23 + resolution.GetHashCode();
hash = hash * 23 + updateMode.GetHashCode();
hash = hash * 23 + ((int)resolution).GetHashCode(); // Enum.GetHashCode generates garbade on .NET 3.5... Works fine on 4.6+. Wtf !?
hash = hash * 23 + ((int)updateMode).GetHashCode();
hash = hash * 23 + updatePeriod.GetHashCode();
hash = lightingOverride != null ? hash * 23 + rotation.GetHashCode() : hash;
return hash;

正在加载...
取消
保存