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

Commit a67fe3a

Browse files
committed
Fixed HDR warning in 5.6
1 parent a56d4b3 commit a67fe3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PostProcessing/Runtime/PostProcessingContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ public bool isGBufferAvailable
3333

3434
public bool isHdr
3535
{
36+
// No UNITY_5_6_OR_NEWER defined in early betas of 5.6
37+
#if UNITY_5_6 || UNITY_5_6_OR_NEWER
38+
get { return camera.allowHDR; }
39+
#else
3640
get { return camera.hdr; }
41+
#endif
3742
}
3843

3944
public int width

0 commit comments

Comments
 (0)