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

Commit 4fda1ba

Browse files
committed
Simplified ifdef logic
1 parent a4a66d6 commit 4fda1ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

PostProcessing/Runtime/Effects/MotionBlur.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,14 @@ public override DepthTextureMode GetCameraFlags()
6060

6161
private void CreateTemporaryRT(PostProcessRenderContext context, int nameID, int width, int height, RenderTextureFormat RTFormat)
6262
{
63-
#if !UNITY_2019_1_OR_NEWER
64-
bool useDynamicRes = context.camera.allowDynamicResolution;
65-
#endif
6663
var rtDesc = context.GetDescriptor(0, RTFormat, RenderTextureReadWrite.Linear);
6764
rtDesc.width = width;
6865
rtDesc.height = height;
6966
var cmd = context.command;
7067
#if UNITY_2019_1_OR_NEWER
7168
cmd.GetTemporaryRT(nameID, rtDesc, FilterMode.Point);
7269
#else
73-
cmd.GetTemporaryRT(nameID, rtDesc.width, rtDesc.height, rtDesc.depthBufferBits, FilterMode.Point, rtDesc.colorFormat, RenderTextureReadWrite.Linear, rtDesc.msaaSamples, rtDesc.enableRandomWrite, rtDesc.memoryless, useDynamicRes);
70+
cmd.GetTemporaryRT(nameID, rtDesc.width, rtDesc.height, rtDesc.depthBufferBits, FilterMode.Point, rtDesc.colorFormat, RenderTextureReadWrite.Linear, rtDesc.msaaSamples, rtDesc.enableRandomWrite, rtDesc.memoryless, context.camera.allowDynamicResolution);
7471
#endif
7572
}
7673

0 commit comments

Comments
 (0)