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

Commit 94498dc

Browse files
committed
Fix for #1133874
1 parent 3e8ce16 commit 94498dc

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
### Fixed
1010
- LDR Color grading in gamma mode no longer produces banding artifacts on Mali GPUs on OpenGL ES2.
11+
- Gamma mode no longer darken the screen with LWRP.
1112

1213
## [2.1.4] - 2019-02-27
1314

PostProcessing/Runtime/PostProcessRenderContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,12 @@ RenderTextureDescriptor GetDescriptor(int depthBufferBits = 0, RenderTextureForm
340340
if (colorFormat != RenderTextureFormat.Default)
341341
modifiedDesc.colorFormat = colorFormat;
342342

343+
#if UNITY_2019_1_OR_NEWER
344+
// Reversed behavior in 2019.1 when RenderTextureFormat.Default is set...
345+
modifiedDesc.sRGB = readWrite == RenderTextureReadWrite.Linear;
346+
#else
343347
modifiedDesc.sRGB = readWrite != RenderTextureReadWrite.Linear;
348+
#endif
344349

345350
return modifiedDesc;
346351
}

0 commit comments

Comments
 (0)