Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit f208bd8

Browse files
committed
Fixed the code stripper stripping too much
1 parent 047b544 commit f208bd8

20 files changed

Lines changed: 58 additions & 2 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.0] - 2019-03-26
8+
9+
### Fixed
10+
- Post-processing would crash if "Managed Stripping Level" was set to Medium or High.
11+
712
## [2.1.5] - 2019-03-25
813

914
### Fixed

PostProcessing/Runtime/Effects/AmbientOcclusion.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ internal interface IAmbientOcclusionMethod
207207
void Release();
208208
}
209209

210+
#if UNITY_2017_1_OR_NEWER
211+
[UnityEngine.Scripting.Preserve]
212+
#endif
210213
internal sealed class AmbientOcclusionRenderer : PostProcessEffectRenderer<AmbientOcclusion>
211214
{
212215
IAmbientOcclusionMethod[] m_Methods;

PostProcessing/Runtime/Effects/AutoExposure.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ public override bool IsEnabledAndSupported(PostProcessRenderContext context)
8787
}
8888
}
8989

90+
#if UNITY_2017_1_OR_NEWER
91+
[UnityEngine.Scripting.Preserve]
92+
#endif
9093
internal sealed class AutoExposureRenderer : PostProcessEffectRenderer<AutoExposure>
9194
{
9295
const int k_NumEyes = 2;

PostProcessing/Runtime/Effects/Bloom.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ public override bool IsEnabledAndSupported(PostProcessRenderContext context)
9393
}
9494
}
9595

96+
#if UNITY_2017_1_OR_NEWER
97+
[UnityEngine.Scripting.Preserve]
98+
#endif
9699
internal sealed class BloomRenderer : PostProcessEffectRenderer<Bloom>
97100
{
98101
enum Pass

PostProcessing/Runtime/Effects/ChromaticAberration.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public override bool IsEnabledAndSupported(PostProcessRenderContext context)
3737
}
3838
}
3939

40+
#if UNITY_2017_1_OR_NEWER
41+
[UnityEngine.Scripting.Preserve]
42+
#endif
4043
internal sealed class ChromaticAberrationRenderer : PostProcessEffectRenderer<ChromaticAberration>
4144
{
4245
Texture2D m_InternalSpectralLut;

PostProcessing/Runtime/Effects/ColorGrading.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ public override bool IsEnabledAndSupported(PostProcessRenderContext context)
387387
}
388388
}
389389

390+
#if UNITY_2017_1_OR_NEWER
391+
[UnityEngine.Scripting.Preserve]
392+
#endif
390393
internal sealed class ColorGradingRenderer : PostProcessEffectRenderer<ColorGrading>
391394
{
392395
enum Pass

PostProcessing/Runtime/Effects/DepthOfField.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public override bool IsEnabledAndSupported(PostProcessRenderContext context)
7777
}
7878
}
7979

80+
#if UNITY_2017_1_OR_NEWER
81+
[UnityEngine.Scripting.Preserve]
82+
#endif
8083
// TODO: Doesn't play nice with alpha propagation, see if it can be fixed without killing performances
8184
internal sealed class DepthOfFieldRenderer : PostProcessEffectRenderer<DepthOfField>
8285
{

PostProcessing/Runtime/Effects/Dithering.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace UnityEngine.Rendering.PostProcessing
55
{
6+
#if UNITY_2017_1_OR_NEWER
7+
[UnityEngine.Scripting.Preserve]
8+
#endif
69
[Serializable]
710
internal sealed class Dithering
811
{

PostProcessing/Runtime/Effects/FastApproximateAntialiasing.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ namespace UnityEngine.Rendering.PostProcessing
66
/// <summary>
77
/// This class holds settings for the Fast Approximate Anti-aliasing (FXAA) effect.
88
/// </summary>
9+
#if UNITY_2017_1_OR_NEWER
10+
[UnityEngine.Scripting.Preserve]
11+
#endif
912
[Serializable]
1013
public sealed class FastApproximateAntialiasing
1114
{

PostProcessing/Runtime/Effects/Fog.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace UnityEngine.Rendering.PostProcessing
55
/// <summary>
66
/// This class holds settings for the Fog effect with the deferred rendering path.
77
/// </summary>
8+
#if UNITY_2017_1_OR_NEWER
9+
[UnityEngine.Scripting.Preserve]
10+
#endif
811
[Serializable]
912
public sealed class Fog
1013
{

0 commit comments

Comments
 (0)