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

Commit 23a978a

Browse files
committed
Fixed R8_SRGB error on 2019.1
1 parent 07a01a0 commit 23a978a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

PostProcessing/Runtime/Effects/DepthOfField.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ RenderTexture CheckHistory(int eye, int id, PostProcessRenderContext context, Re
149149
{
150150
RenderTexture.ReleaseTemporary(rt);
151151

152-
// TODO: The CoCCalculation CoCTex uses RenderTextureReadWrite.Linear, why isn't this?
153-
rt = context.GetScreenSpaceTemporaryRT(0, format);
152+
rt = context.GetScreenSpaceTemporaryRT(0, format, RenderTextureReadWrite.Linear);
154153
rt.name = "CoC History, Eye: " + eye + ", ID: " + id;
155154
rt.filterMode = FilterMode.Bilinear;
156155
rt.Create();

0 commit comments

Comments
 (0)