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

Commit 84b655e

Browse files
committed
Fixed warnings with Grain on debug/test mode
1 parent 93bccde commit 84b655e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PostProcessing/Runtime/Effects/Grain.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public override bool IsEnabledAndSupported(PostProcessRenderContext context)
2525
}
2626
}
2727

28+
#if POSTFX_DEBUG_STATIC_GRAIN
29+
#pragma warning disable 414
30+
#endif
31+
2832
public sealed class GrainRenderer : PostProcessEffectRenderer<Grain>
2933
{
3034
RenderTexture m_GrainLookupRT;
@@ -95,4 +99,8 @@ public override void Release()
9599
m_SampleIndex = 0;
96100
}
97101
}
102+
103+
#if POSTFX_DEBUG_STATIC_GRAIN
104+
#pragma warning restore 414
105+
#endif
98106
}

0 commit comments

Comments
 (0)